staging: usbip: put usb_device and kill event handler thread in error cleanups.
authorHarvey Yang <harvey.huawei.yang@gmail.com>
Tue, 6 Nov 2012 08:10:29 +0000 (16:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 21:08:48 +0000 (13:08 -0800)
commit695bcb1c0a50e8fe04f0ab868cac849130788bc0
treec0bf6692aaf4878bb52cc59159b6eb1cbce3e62e
parenta68292fce139f88bb85b8a53ac9df376063172c3
staging: usbip: put usb_device and kill event handler thread in error cleanups.

If probe returns with error, the kthread is still alive even when all
usbip modules unloaded. So do cleanups in error handler.

Signed-off-by: harvey.yang <harvey.huawei.yang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/stub_dev.c