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
- Lines: 10
- Date:
Sun Mar 25 11:37:37 2001
- Orig file:
v2.2.18/drivers/usb/hub.h
- Orig date:
Sun Mar 25 11:28:32 2001
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)