staging: usbip: fix shutdown problems.
authorArjan Mels <arjan.mels@gmx.net>
Tue, 5 Apr 2011 18:24:56 +0000 (20:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Apr 2011 22:51:13 +0000 (15:51 -0700)
commit2f8c4c5494c2589e6cb9a62f399e61a1c4c2378d
tree5fc684d749f0ae5bd03221c5f4cc183979a81d60
parentc996edcf1c451b81740abbcca5257ed7e353fcc6
staging: usbip: fix shutdown problems.

When shuting down the tcp_rx and tcp_tx threads first check if they are
not closed already (maybe because an error caused them to return).

Signed-off-by: Arjan Mels <arjan.mels@gmx.net>
Cc: Takahiro Hirofuchi <hirofuchi@users.sourceforge.net>
Cc: Max Vozeler <max@vozeler.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub_dev.c