USB: serial: fix race between unthrottle and completion handler in opticon
authorOliver Neukum <oliver@neukum.org>
Wed, 7 Oct 2009 07:25:10 +0000 (09:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:08 +0000 (13:52 -0700)
commit88fa6590b30ef8c4d41923449ada104f915d8df8
treec234aed89fa1c94b8115e6a6cb5eb9433357a52c
parentd55500941fe6db4d7424c744522ee2451ac1ceda
USB: serial: fix race between unthrottle and completion handler in opticon

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

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

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