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
- Lines: 11
- Date:
Thu Dec 7 16:13:38 2000
- Orig file:
v2.4.0-test11/linux/drivers/usb/hub.h
- Orig date:
Sun Oct 8 10:50:30 2000
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)