From: Sarah Sharp Date: Tue, 23 Nov 2010 18:42:22 +0000 (-0800) Subject: xhci: Limit roothub ports to 15 USB3 & 31 USB2 ports. X-Git-Tag: v2.6.39-rc1~472^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d30b2a208108a0b0fdeae7006b8824d9be16ca96;p=pandora-kernel.git xhci: Limit roothub ports to 15 USB3 & 31 USB2 ports. The USB core allocates a USB 2.0 roothub descriptor that has room for 31 (USB_MAXCHILDREN) ports' worth of DeviceRemovable and PortPwrCtrlMask fields. Limit the number of USB 2.0 roothub ports accordingly. I don't expect to run into this limitation ever, but this prevents a buffer overflow issue in the roothub descriptor filling code. Similarly, a USB 3.0 hub can only have 15 downstream ports, so limit the USB 3.0 roothub to 15 USB 3.0 ports. Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed