From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:50128 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752622AbdEWMnN (ORCPT ); Tue, 23 May 2017 08:43:13 -0400 Subject: Patch "USB: ehci-platform: fix companion-device leak" has been added to the 4.4-stable tree To: johan@kernel.org, gregkh@linuxfoundation.org, stern@rowland.harvard.edu, yoshihiro.shimoda.uh@renesas.com Cc: , From: Date: Tue, 23 May 2017 14:42:13 +0200 Message-ID: <149554333317345@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: 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.4-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.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From a7415477a20448bbb7d13765784c0b29249a176f Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 16 May 2017 16:26:13 +0200 Subject: USB: ehci-platform: fix companion-device leak From: Johan Hovold 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 Acked-by: Yoshihiro Shimoda Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- 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 @@ -378,8 +378,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.4/usb-serial-io_ti-fix-div-by-zero-in-set_termios.patch queue-4.4/usb-hub-fix-non-ss-hub-descriptor-handling.patch queue-4.4/usb-serial-ftdi_sio-add-olimex-arm-usb-tiny-h-pids.patch queue-4.4/usb-serial-ftdi_sio-fix-setting-latency-for-unprivileged-users.patch queue-4.4/usb-iowarrior-fix-info-ioctl-on-big-endian-hosts.patch queue-4.4/watchdog-pcwd_usb-fix-null-deref-at-probe.patch queue-4.4/usb-serial-qcserial-add-more-lenovo-em74xx-device-ids.patch queue-4.4/usb-serial-option-add-telit-me910-support.patch queue-4.4/net-irda-irda-usb-fix-firmware-name-on-big-endian-hosts.patch queue-4.4/usbvision-fix-null-deref-at-probe.patch queue-4.4/usb-serial-mct_u232-fix-big-endian-baud-rate-handling.patch queue-4.4/usb-ehci-platform-fix-companion-device-leak.patch queue-4.4/mceusb-fix-null-deref-at-probe.patch queue-4.4/usb-hub-fix-ss-hub-descriptor-handling.patch queue-4.4/ath9k_htc-fix-null-deref-at-probe.patch