Date:2011-02-09 03:16:09 (8 years 9 months ago)
Author:Werner Almesberger
Commit:06f61749667e59952c29b26ded50bab3e95e9d4e
Message: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)
Files: atusb/fw2/usb/patches/correct-array-size.patch (1 diff)
atusb/fw2/usb/patches/series (1 diff)

Change Details

atusb/fw2/usb/patches/correct-array-size.patch
1Index: usb/usb/ctrl.c
2===================================================================
3--- usb.orig/usb/ctrl.c 2011-02-08 23:13:09.000000000 -0300
4@@ -136,7 +136,7 @@
5     U8 status[2];
6     usb_pcb_t *pcb = usb_pcb_get();
7
8- memset(status, 0, 2 * sizeof(status));
9+ memset(status, 0, sizeof(status));
10     switch (req->type)
11     {
12     case GET_DEVICE_STATUS:
atusb/fw2/usb/patches/series
11cleanup.patch
22no-cdc.patch
33no-vbus-detect.patch
4correct-array-size.patch

Archive Download the corresponding diff file



interactive