* Patch "USB: ehci-platform: fix companion-device leak" has been added to the 4.11-stable tree
@ 2017-05-23 12:40 gregkh
2017-05-23 12:51 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: gregkh @ 2017-05-23 12:40 UTC (permalink / raw)
To: johan, gregkh, stern, yoshihiro.shimoda.uh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
USB: ehci-platform: fix companion-device leak
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-ehci-platform-fix-companion-device-leak.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From a7415477a20448bbb7d13765784c0b29249a176f Mon Sep 17 00:00:00 2001
From: Johan Hovold <johan@kernel.org>
Date: Tue, 16 May 2017 16:26:13 +0200
Subject: USB: ehci-platform: fix companion-device leak
From: Johan Hovold <johan@kernel.org>
commit a7415477a20448bbb7d13765784c0b29249a176f upstream.
Make sure do drop the reference taken to the companion device during
resume.
Fixes: d4d75128b8fd ("usb: host: ehci-platform: fix usb 1.1 device is not connected in system resume")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/usb/host/ehci-platform.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/drivers/usb/host/ehci-platform.c
+++ b/drivers/usb/host/ehci-platform.c
@@ -381,8 +381,10 @@ static int ehci_platform_resume(struct d
}
companion_dev = usb_of_get_companion_dev(hcd->self.controller);
- if (companion_dev)
+ if (companion_dev) {
device_pm_wait_for_dev(hcd->self.controller, companion_dev);
+ put_device(companion_dev);
+ }
ehci_resume(hcd, priv->reset_on_resume);
return 0;
Patches currently in stable-queue which might be from johan@kernel.org are
queue-4.11/usb-serial-io_ti-fix-div-by-zero-in-set_termios.patch
queue-4.11/usb-chaoskey-fix-alea-quirk-on-big-endian-hosts.patch
queue-4.11/usb-hub-fix-non-ss-hub-descriptor-handling.patch
queue-4.11/usb-serial-ftdi_sio-add-olimex-arm-usb-tiny-h-pids.patch
queue-4.11/usb-serial-ftdi_sio-fix-setting-latency-for-unprivileged-users.patch
queue-4.11/usb-iowarrior-fix-info-ioctl-on-big-endian-hosts.patch
queue-4.11/watchdog-pcwd_usb-fix-null-deref-at-probe.patch
queue-4.11/usb-serial-qcserial-add-more-lenovo-em74xx-device-ids.patch
queue-4.11/usb-serial-option-add-telit-me910-support.patch
queue-4.11/net-irda-irda-usb-fix-firmware-name-on-big-endian-hosts.patch
queue-4.11/of-fdt-add-missing-allocation-failure-check.patch
queue-4.11/usbvision-fix-null-deref-at-probe.patch
queue-4.11/usb-serial-mct_u232-fix-big-endian-baud-rate-handling.patch
queue-4.11/usb-ehci-platform-fix-companion-device-leak.patch
queue-4.11/mceusb-fix-null-deref-at-probe.patch
queue-4.11/usb-hub-fix-ss-hub-descriptor-handling.patch
queue-4.11/ath9k_htc-fix-null-deref-at-probe.patch
queue-4.11/usb-musb-fix-trying-to-suspend-while-active-for-otg-configurations.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch "USB: ehci-platform: fix companion-device leak" has been added to the 4.11-stable tree
2017-05-23 12:40 Patch "USB: ehci-platform: fix companion-device leak" has been added to the 4.11-stable tree gregkh
@ 2017-05-23 12:51 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2017-05-23 12:51 UTC (permalink / raw)
To: johan, stern, yoshihiro.shimoda.uh; +Cc: stable, stable-commits
Had to drop this one as well as the previous patch which this depends on
broke the build. If this is needed in the stable trees, also please
provide a working backport.
thanks,
greg k-h
On Tue, May 23, 2017 at 02:40:40PM +0200, gregkh@linuxfoundation.org wrote:
>
> This is a note to let you know that I've just added the patch titled
>
> USB: ehci-platform: fix companion-device leak
>
> to the 4.11-stable tree which can be found at:
> http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>
> The filename of the patch is:
> usb-ehci-platform-fix-companion-device-leak.patch
> and it can be found in the queue-4.11 subdirectory.
>
> If you, or anyone else, feels it should not be added to the stable tree,
> please let <stable@vger.kernel.org> know about it.
>
>
> >From a7415477a20448bbb7d13765784c0b29249a176f Mon Sep 17 00:00:00 2001
> From: Johan Hovold <johan@kernel.org>
> Date: Tue, 16 May 2017 16:26:13 +0200
> Subject: USB: ehci-platform: fix companion-device leak
>
> From: Johan Hovold <johan@kernel.org>
>
> commit a7415477a20448bbb7d13765784c0b29249a176f upstream.
>
> Make sure do drop the reference taken to the companion device during
> resume.
>
> Fixes: d4d75128b8fd ("usb: host: ehci-platform: fix usb 1.1 device is not connected in system resume")
> Signed-off-by: Johan Hovold <johan@kernel.org>
> Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> ---
> drivers/usb/host/ehci-platform.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> --- a/drivers/usb/host/ehci-platform.c
> +++ b/drivers/usb/host/ehci-platform.c
> @@ -381,8 +381,10 @@ static int ehci_platform_resume(struct d
> }
>
> companion_dev = usb_of_get_companion_dev(hcd->self.controller);
> - if (companion_dev)
> + if (companion_dev) {
> device_pm_wait_for_dev(hcd->self.controller, companion_dev);
> + put_device(companion_dev);
> + }
>
> ehci_resume(hcd, priv->reset_on_resume);
> return 0;
>
>
> Patches currently in stable-queue which might be from johan@kernel.org are
>
> queue-4.11/usb-serial-io_ti-fix-div-by-zero-in-set_termios.patch
> queue-4.11/usb-chaoskey-fix-alea-quirk-on-big-endian-hosts.patch
> queue-4.11/usb-hub-fix-non-ss-hub-descriptor-handling.patch
> queue-4.11/usb-serial-ftdi_sio-add-olimex-arm-usb-tiny-h-pids.patch
> queue-4.11/usb-serial-ftdi_sio-fix-setting-latency-for-unprivileged-users.patch
> queue-4.11/usb-iowarrior-fix-info-ioctl-on-big-endian-hosts.patch
> queue-4.11/watchdog-pcwd_usb-fix-null-deref-at-probe.patch
> queue-4.11/usb-serial-qcserial-add-more-lenovo-em74xx-device-ids.patch
> queue-4.11/usb-serial-option-add-telit-me910-support.patch
> queue-4.11/net-irda-irda-usb-fix-firmware-name-on-big-endian-hosts.patch
> queue-4.11/of-fdt-add-missing-allocation-failure-check.patch
> queue-4.11/usbvision-fix-null-deref-at-probe.patch
> queue-4.11/usb-serial-mct_u232-fix-big-endian-baud-rate-handling.patch
> queue-4.11/usb-ehci-platform-fix-companion-device-leak.patch
> queue-4.11/mceusb-fix-null-deref-at-probe.patch
> queue-4.11/usb-hub-fix-ss-hub-descriptor-handling.patch
> queue-4.11/ath9k_htc-fix-null-deref-at-probe.patch
> queue-4.11/usb-musb-fix-trying-to-suspend-while-active-for-otg-configurations.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-23 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-23 12:40 Patch "USB: ehci-platform: fix companion-device leak" has been added to the 4.11-stable tree gregkh
2017-05-23 12:51 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).