]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Fix oops caused by more USB2 ports than USB3 ports.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 9 Feb 2012 22:43:44 +0000 (14:43 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 10 Feb 2012 22:24:32 +0000 (14:24 -0800)
commitb0cb52a6becfbb082037f124b3476943333cd5b8
tree90673c5b5c9d234ad09b190565355c154f5402cc
parent7e5af4dd5c2066a49c0cfb60b5ed85f6fc7d4ed4
xhci: Fix oops caused by more USB2 ports than USB3 ports.

The code to set the device removable bits in the USB 2.0 roothub
descriptor was accidentally looking at the USB 3.0 port registers
instead of the USB 2.0 registers.  This can cause an oops if there are
more USB 2.0 registers than USB 3.0 registers.

This should be backported to kernels as old as 2.6.39, that contain the
commit f6ecd717f4eb3375f7c044082a81ed2edcaf6934 "xhci: Return a USB 3.0
hub descriptor for USB3 roothub."

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci-hub.c