From: Alan Stern Date: Fri, 19 Dec 2008 15:27:56 +0000 (-0500) Subject: USB: cancel pending Set-Config requests if userspace gets there first X-Git-Tag: v2.6.29-rc1~182^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df718962bf91c7bd345060aadaa24b03f6140b07;p=pandora-kernel.git 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 Cc: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed