diff options
author | Nathael Pajani <nathael.pajani@cpe.fr> | 2007-09-04 05:46:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-09-11 10:48:15 -0400 |
commit | e5dd01154c1e9ca2400f4682602d1a4fa54c25dd (patch) | |
tree | 7c142dfa05209c44b6cc2e004887e05311316a48 /drivers/usb | |
parent | ce05916f6bf9906fba88853078715f9a4d300237 (diff) |
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.c | 2 |
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, | |||
60 | dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; | 60 | dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; |
61 | 61 | ||
62 | spin_lock(&dynids->lock); | 62 | spin_lock(&dynids->lock); |
63 | list_add_tail(&dynids->list, &dynid->node); | 63 | list_add_tail(&dynid->node, &dynids->list); |
64 | spin_unlock(&dynids->lock); | 64 | spin_unlock(&dynids->lock); |
65 | 65 | ||
66 | if (get_driver(driver)) { | 66 | if (get_driver(driver)) { |