diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-06-24 13:48:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-06 03:14:10 (GMT) |
commit | 8547d4cc2b616e4f1dafebe2c673fc986422b506 (patch) | |
tree | df07d83f518cbcc1fd7b54bcd0d16402dbc2db1d /drivers/staging/easycap | |
parent | c88f9906c36de61a59a99e109ff04d5b0a4a29d1 (diff) | |
download | linux-fsl-qoriq-8547d4cc2b616e4f1dafebe2c673fc986422b506.tar.xz |
Staging: usbip: vhci-hcd: Do not kill already dead RX/TX kthread
When unbinding a device on the host which was still attached on the
client, I got a NULL pointer dereference on the client. This turned out
to be due to kthread_stop() being called on an already dead kthread.
Here is how I was able to reproduce the problem:
server:# usbip bind -b 1-2
client:# usbip attach -h server -b 1-2
server:# usbip unbind -b 1-2
This patch fixes the problem by checking the kthread before attempting
to kill it, as it is done on the opposite side in
stub_shutdown_connection().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/easycap')
0 files changed, 0 insertions, 0 deletions