USB: ehci-platform: fix companion-device leak
authorJohan Hovold <[email protected]>
Tue, 16 May 2017 14:26:13 +0000 (16:26 +0200)
committerGreg Kroah-Hartman <[email protected]>
Wed, 17 May 2017 09:52:44 +0000 (11:52 +0200)
commita7415477a20448bbb7d13765784c0b29249a176f
tree1c323e463e4b02bfd9f8b81db1a6f1daa2a70bdd
parent1f873d857b6c2fefb4dada952674aa01bcfb92bd
USB: ehci-platform: fix companion-device leak

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")
Cc: stable <[email protected]> # 4.11
Signed-off-by: Johan Hovold <[email protected]>
Acked-by: Yoshihiro Shimoda <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/ehci-platform.c