[PATCH] bugfix for usb core
Nathael Pajani <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I already wrote for a bugfix in the past (kernel 2.6.20), and I just found the bug back in the 2.6.22.5 ! I should have used a beter insecticide :) (Or maybe I'm doing a mistake, but I don't think so) The bug is about linked list use in drivers/usb/core/driver.c (see attached patch linked_list_insersion_bugfix.patch) Have fun. +++ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
linked_list_insersion_bugfix.patch
(text/x-patch, 458 B)
diff -urN a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
--- a/drivers/usb/core/driver.c 2007-08-30 20:10:37.000000000 +0100
+++ b/drivers/usb/core/driver.c 2007-08-30 18:29:24.000000000 +0200
@@ -60,7 +60,7 @@
dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE;
spin_lock(&dynids->lock);
- list_add_tail(&dynids->list, &dynid->node);
+ list_add_tail( &dynid->node, &dynids->list );
spin_unlock(&dynids->lock);
if (get_driver(driver)) {