patch-2.4.26 linux-2.4.26/drivers/usb/hid-input.c

Next file: linux-2.4.26/drivers/usb/hiddev.c
Previous file: linux-2.4.26/drivers/usb/hid-core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/usb/hid-input.c linux-2.4.26/drivers/usb/hid-input.c
@@ -444,8 +444,10 @@
 		while (list != &report_enum->report_list) {
 			report = (struct hid_report *) list;
 
-			if (!report->maxfield)
+			if (!report->maxfield) {
+				list = list->next;
 				continue;
+			}
 
 			if (!hidinput) {
 				hidinput = kmalloc(sizeof(*hidinput), GFP_KERNEL);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)