[PATCH] staging: usbip: fix the usage of kthread_stop()

From: Oleg Nesterov
Date: Tue Mar 13 2012 - 14:14:48 EST


On 03/13, Tobias Klauser wrote:
>
> Looks OK to me at a first glance. I'll try to dig up my test system
> where I was able to produce that NULL pointer dereference and test your
> patch there and will then let you know my results.

Oh, great. Please find the patch below.

Of course it wasn't tested at all ;)

-----------------------------------------------------------------------