]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
USB: kill URBs permanently
authorOliver Neukum <oliver@neukum.org>
Tue, 29 Jul 2008 13:26:15 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:40:51 +0000 (14:40 -0700)
commit55b447bf79ad25591437d24b78caa9d0ae4fec82
treef8b84be61cf96a993664f35f572d8ddf6e618d39
parent49b707b90c7f7260beb8691fc5d99d71a5549ec0
USB: kill URBs permanently

looking at usb_kill_urb() it seems to me that it is unnecessarily lenient.
In the use case of disconnect() you never want to use the URB again
(for the same device) But leaving urb->reject elevated will make it easier
to avoid races between read/write and disconnect.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/urb.c
include/linux/usb.h