patch-2.2.19 linux/drivers/usb/hub.h

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

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/usb/hub.h linux/drivers/usb/hub.h
@@ -111,7 +111,8 @@
 	/* Interrupt polling pipe */
 	struct urb *urb;
 
-	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 */
 
 	/* List of hubs */
 	struct list_head hub_list;

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