USB: serial: fix race between unthrottle and completion handler in visor
authorOliver Neukum <oliver@neukum.org>
Wed, 7 Oct 2009 09:01:38 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:09 +0000 (13:52 -0700)
commita1c33952b729eba4cedb8dbe54765921f2b3062f
treedbdf6757ee483ee07cede1fd340b27b8018a1bb7
parent638325154572ba2113a18669fe3b299caa2dabd9
USB: serial: fix race between unthrottle and completion handler in visor

usb:usbserial:visor: fix race between unthrottle and completion handler

visor_unthrottle() mustn't resubmit the URB unconditionally
as the URB may still be running.

the same bug as opticon.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/visor.c