]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: cancel pending Set-Config requests if userspace gets there first
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 19 Dec 2008 15:27:56 +0000 (10:27 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:12 +0000 (10:00 -0800)
commitdf718962bf91c7bd345060aadaa24b03f6140b07
treecfae38a59ccb944a2af3ef39a14d4d854cba64a3
parent6fd9086a518d4f14213a32fe6c9ac17fabebbc1e
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>
drivers/usb/core/message.c