patch-2.4.0-test12 linux/drivers/usb/hub.h

Next file: linux/drivers/usb/plusb.c
Previous file: linux/drivers/usb/hid.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test11/linux/drivers/usb/hub.h linux/drivers/usb/hub.h
@@ -95,8 +95,8 @@
 
 	struct urb *urb;		/* Interrupt polling pipe */
 
-	char buffer[USB_MAXCHILDREN / 8];
-
+	char buffer[(USB_MAXCHILDREN + 1 + 7) / 8]; /* add 1 bit for hub status change */
+					/* and add 7 bits to round up to byte boundary */
 	int error;
 	int nerrors;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)