]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: fix resource leak in xhci power loss path
authorOliver Neukum <oneukum@suse.de>
Thu, 10 May 2012 08:19:21 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:50 +0000 (15:15 +0800)
commit8ccb02914be80e1ca08fe978e8a02e472f9d143c
treef06d8dc8fe5b681add02001d066ceecfc71faffe
parent904590abe2a30abe7fc3345fde087a91c21db2e1
USB: fix resource leak in xhci power loss path

commit f8a9e72d125f4e00ec529ba67b674321a1f3bf31 upstream.

Some more data structures must be freed and counters
reset if an XHCI controller has lost power. The failure
to do so renders some chips inoperative after a certain number
of S4 cycles.

This patch should be backported to kernels as old as 3.2,
that contain the commits c29eea621900f18287d50519f72cb9113746d75a
"xhci: Implement HS/FS/LS bandwidth checking." and
commit 839c817ce67178ca3c7c7ad534c571bba1e69ebe
"xhci: Implement HS/FS/LS bandwidth checking."

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c