staging: usbip: vhci: fix oops on subsequent attach
authorMax Vozeler <max@hinterhof.net>
Mon, 18 Apr 2011 19:44:10 +0000 (21:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Apr 2011 00:09:51 +0000 (17:09 -0700)
vhci_rx/vhci_tx threads are created once but stopped each
time the vdev is shut down. On subsequent attach wake_up_process()
oopses trying to access the stopped threads.

This patch does as before the kthread conversion which is to
create the threads each time a device is attached and stop the
threads when the device is shut down.

Signed-off-by: Max Vozeler <max@hinterhof.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Takahiro Hirofuchi <hirofuchi@users.sourceforge.net>
Cc: Arjan Mels <arjan.mels@gmx.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found