File: linux-2.6.0-USB-queue-overflow.patch

package info (click to toggle)
apcupsd 3.14.12-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,676 kB
  • ctags: 8,109
  • sloc: ansic: 36,822; cpp: 9,414; sh: 3,975; makefile: 1,591; tcl: 368; objc: 281; php: 255
file content (17 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This is the patch by Adam Kropelin that corrects the control queue
overflows in the kernel. This patch has been accepted to be applied.
However, with the current version of apcupsd, we have applied a 
workaround that does not require this patch.


--- linux-2.6.0-test11/drivers/usb/input/hiddev.c	Fri Oct 17 23:23:08 2003
+++ linux-2.6.0-test11-adk/drivers/usb/input/hiddev.c	Wed Dec 17 23:38:24 2003
@@ -213,6 +213,7 @@
 	  ((type == HID_OUTPUT_REPORT) ? HID_REPORT_TYPE_OUTPUT : 
 	   ((type == HID_FEATURE_REPORT) ? HID_REPORT_TYPE_FEATURE:0));
 	uref.report_id = report->id;
+	uref.field_index = HID_FIELD_INDEX_NONE;
 
 	hiddev_send_event(hid, &uref);
 }