kernel-ark/drivers/staging
Tobias Klauser 8547d4cc2b 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>
2011-07-05 20:14:10 -07:00
..
altera-stapl Staging: altera-stapl: Remove superfluous comment from Kconfig 2011-07-05 10:19:13 -07:00
asus_oled
ath6kl
bcm Remove unneeded version.h include from drivers/staging/bcm/headers.h 2011-07-05 10:39:40 -07:00
brcm80211 staging: brcm80211: added newlines to some debug macros in bcmsdh_sdmmc.c 2011-07-05 19:47:52 -07:00
comedi Staging: comedi: das1800: fixed multiple brace coding style issues and pointer declaration style errors 2011-07-05 09:40:30 -07:00
cptm1217
crystalhd
cx25821
cxd2099 Remove unneeded version.h include from drivers/staging/cxd2099/cxd2099.c 2011-07-05 10:39:39 -07:00
cxt1e1 Remove unneeded version.h include from drivers/staging/cxt1e1/sbecom_inline_linux.h 2011-07-05 10:39:39 -07:00
dt3155v4l
easycap staging/easycap: kill telltale logic 2011-07-05 19:47:46 -07:00
echo
et131x staging: et131x: Remove typedefs from et1310_phy.h 2011-07-05 19:54:58 -07:00
frontier
ft1000 staging: ft1000: Merge common definitions from USB and PCMCIA drivers 2011-07-05 10:33:46 -07:00
generic_serial
gma500 gma500: oops.. thou shalt stg add... 2011-07-05 19:51:50 -07:00
go7007
hv staging: hv: fix some white spaces in netvsc driver 2011-07-05 09:10:47 -07:00
iio
intel_sst
keucr Staging: keucr: usb: fixed a brace coding style warning 2011-07-05 10:20:24 -07:00
line6
lirc Remove unneeded version.h includes from drivers/staging/lirc/ 2011-07-05 10:39:39 -07:00
mei
msm Remove unneeded version.h includes from drivers/staging/msm/ 2011-07-05 10:39:39 -07:00
nvec
octeon staging: octeon: use printk_ratelimited instead of printk_ratelimit 2011-06-28 14:29:19 -07:00
olpc_dcon
panel Remove unneeded version.h include from drivers/staging/panel/panel.c 2011-07-05 10:39:39 -07:00
phison
pohmelfs
quatech_usb2
quickstart
rtl8187se staging: rtl8187se: Fix big-endian warning 2011-07-05 19:59:48 -07:00
rtl8192e staging: rtl8192e: Fix big-endian warning 2011-07-05 19:59:48 -07:00
rtl8192u staging: rtl8192u: Fix big-endian warning 2011-07-05 19:59:48 -07:00
rtl8712 Remove unneeded version.h includes from drivers/staging/rtl*/ 2011-07-05 10:39:40 -07:00
rts_pstor staging: rts_pstor: Fix a bug that a MMCPlus card can't be accessed 2011-07-05 19:54:58 -07:00
sbe-2t3e3
sep staging: sep: fix function name in kernel-doc 2011-06-28 13:23:57 -07:00
serqt_usb2
slicoss
sm7xx
solo6x10
speakup Remove unneeded version.h includes from drivers/staging/speakup/ 2011-07-05 10:39:38 -07:00
spectra
ste_rmi4
tidspbridge Remove unneeded version.h include from drivers/staging/tidspbridge/include/dspbridge/host_os.h 2011-07-05 10:39:38 -07:00
tm6000 Remove unneeded version.h includes (and add where needed) for drivers/tm6000/ 2011-07-05 10:39:38 -07:00
tty
usbip Staging: usbip: vhci-hcd: Do not kill already dead RX/TX kthread 2011-07-05 20:14:10 -07:00
vme
vt6655
vt6656
westbridge staging/westbridge: convert cyasgadget to new udc core 2011-07-05 19:59:47 -07:00
winbond
wlags49_h2 Remove unneeded version.h includes from drivers/staging/wlags49_h2/ 2011-07-05 10:39:38 -07:00
wlags49_h25
wlan-ng Remove unneeded version.h include from drivers/staging/wlan-ng/prism2sta.c 2011-07-05 10:39:38 -07:00
xgifb Remove unneeded version.h includes from drivers/staging/xgifb/ 2011-07-05 10:39:37 -07:00
zcache
zram Staging: zram: Replace mutex lock by a R/W semaphore 2011-07-05 10:07:13 -07:00
Kconfig
Makefile staging: remove reference to cs5535_gpio makefile 2011-07-05 08:56:33 -07:00
staging.c