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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:44 +0000 (00:43 +0100)
commit86d17bfb1a8d1b265f466604761e82e8dd2c52d5
tree1ed6c81002f7a4554fbb19da2b2c7a942f13681d
parentf0a9bc14e9a9fda7f80484a07dadc58705a2dfec
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: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-mem.c