1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-26 00:18:27 +02:00

fw2/usb/patches/correct-array-size.patch: correct memset in ctrl_get_status

This caused lsusb -v to fail with
cannot read device status, Broken pipe (32)
This commit is contained in:
Werner Almesberger 2011-02-08 23:16:09 -03:00
parent 1c004ee2d2
commit 06f6174966
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: usb/usb/ctrl.c
===================================================================
--- usb.orig/usb/ctrl.c 2011-02-08 23:13:09.000000000 -0300
+++ usb/usb/ctrl.c 2011-02-08 23:13:18.000000000 -0300
@@ -136,7 +136,7 @@
U8 status[2];
usb_pcb_t *pcb = usb_pcb_get();
- memset(status, 0, 2 * sizeof(status));
+ memset(status, 0, sizeof(status));
switch (req->type)
{
case GET_DEVICE_STATUS:

View File

@ -1,3 +1,4 @@
cleanup.patch cleanup.patch
no-cdc.patch no-cdc.patch
no-vbus-detect.patch no-vbus-detect.patch
correct-array-size.patch