UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / examples / linux-2.6.0-USB-queue-overflow.patch
blob06be364b184f46ca27dc1b9421430375f26fd805
1 This is the patch by Adam Kropelin that corrects the control queue
2 overflows in the kernel. This patch has been accepted to be applied.
3 However, with the current version of apcupsd, we have applied a
4 workaround that does not require this patch.
7 --- linux-2.6.0-test11/drivers/usb/input/hiddev.c Fri Oct 17 23:23:08 2003
8 +++ linux-2.6.0-test11-adk/drivers/usb/input/hiddev.c Wed Dec 17 23:38:24 2003
9 @@ -213,6 +213,7 @@
10 ((type == HID_OUTPUT_REPORT) ? HID_REPORT_TYPE_OUTPUT :
11 ((type == HID_FEATURE_REPORT) ? HID_REPORT_TYPE_FEATURE:0));
12 uref.report_id = report->id;
13 + uref.field_index = HID_FIELD_INDEX_NONE;
15 hiddev_send_event(hid, &uref);