Commit e5dd0115 authored by Nathael Pajani's avatar Nathael Pajani Committed by Greg Kroah-Hartman

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: default avatarNathael Pajani <nathael.pajani@cpe.fr>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ce05916f
...@@ -60,7 +60,7 @@ ssize_t usb_store_new_id(struct usb_dynids *dynids, ...@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment