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>
This commit is contained in:
Nathael Pajani 2007-09-04 11:46:23 +02:00 committed by Greg Kroah-Hartman
parent ce05916f6b
commit e5dd01154c
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ ssize_t usb_store_new_id(struct usb_dynids *dynids,
dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE; dynid->id.match_flags = USB_DEVICE_ID_MATCH_DEVICE;
spin_lock(&dynids->lock); spin_lock(&dynids->lock);
list_add_tail(&dynids->list, &dynid->node); list_add_tail(&dynid->node, &dynids->list);
spin_unlock(&dynids->lock); spin_unlock(&dynids->lock);
if (get_driver(driver)) { if (get_driver(driver)) {