aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-12-19 10:27:56 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-07 10:00:12 -0800
commitdf718962bf91c7bd345060aadaa24b03f6140b07 (patch)
treecfae38a59ccb944a2af3ef39a14d4d854cba64a3 /drivers/usb/core/usb.c
parentUSB: automatically enable wakeup for PCI host controllers (diff)
downloadwireguard-linux-df718962bf91c7bd345060aadaa24b03f6140b07.tar.xz
wireguard-linux-df718962bf91c7bd345060aadaa24b03f6140b07.zip
USB: cancel pending Set-Config requests if userspace gets there first
This patch (as1195) eliminates a potential problem identified by Oliver Neukum. When a driver queues an asynchronous Set-Config request using usb_driver_set_configuration(), the request should be cancelled if userspace changes the configuration first. The patch introduces a linked list of pending async Set-Config requests, and uses it to invalidate the requests for a particular device whenever that device's configuration is set. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: Oliver Neukum <oliver@neukum.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/usb.c')
0 files changed, 0 insertions, 0 deletions