USB: fix omninet write vs. close race
authorOliver Neukum <oneukum@suse.de>
Tue, 27 Mar 2007 14:02:34 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:38 +0000 (13:28 -0700)
commit5ec1862e7b612d804ca10a0475dccf98c857efec
tree6670e75d9364c9d8871f8f1b85ac12bff9900e34
parent2f007de2f4296e4dafae6ab0b3cc1bc49443137a
USB: fix omninet write vs. close race

omninet kills all URBs in close. However write() returns as soon as
the URB has been submitted. Killing the last URB means a race that
can lose that date written in the last call to write().
As a fix this is moved to shutdown().

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/omninet.c