aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSarah Sharp <[email protected]>2010-11-23 18:42:22 +0000
committerSarah Sharp <[email protected]>2011-03-14 01:23:42 +0000
commitd30b2a208108a0b0fdeae7006b8824d9be16ca96 (patch)
tree43df86628f31b4ad46d82258c8d8a1a8e88ae625 /net/unix/af_unix.c
parentxhci: Return a USB 3.0 hub descriptor for USB3 roothub. (diff)
downloadkernel-d30b2a208108a0b0fdeae7006b8824d9be16ca96.tar.gz
kernel-d30b2a208108a0b0fdeae7006b8824d9be16ca96.zip
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 <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions