summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorNathael Pajani <nathael.pajani@cpe.fr>2007-09-04 11:46:23 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-09-11 07:48:15 -0700
commite5dd01154c1e9ca2400f4682602d1a4fa54c25dd (patch)
tree7c142dfa05209c44b6cc2e004887e05311316a48 /drivers/usb
parentce05916f6bf9906fba88853078715f9a4d300237 (diff)
downloadblackbird-op-linux-e5dd01154c1e9ca2400f4682602d1a4fa54c25dd.tar.gz
blackbird-op-linux-e5dd01154c1e9ca2400f4682602d1a4fa54c25dd.zip
USB: fix linked list insertion bugfix for usb core
This patch fixes the order of list_add_tail() arguments in usb_store_new_id() so the list can have more than one single element. Signed-off-by: Nathael Pajani <nathael.pajani@cpe.fr> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index a1ad11d0c47c..63b1243a9139 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -60,7 +60,7 @@ ssize_t usb_store_new_id(struct usb_dynids *dynids,
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)) {
OpenPOWER on IntegriCloud