]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commitd1b2e95ab016a0c5b01748986f6ce42e9d11cab2
treec79cd57a4acf50e485eeebc552ac045cd48c98af
parent9f908a9eaa94f07265811c59b740a4608d3dfc96
staging: usbip: vhci: fix oops on subsequent attach

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>
drivers/staging/usbip/vhci_hcd.c
drivers/staging/usbip/vhci_sysfs.c