vhost: stop worker only if created
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 31 Aug 2010 02:05:57 +0000 (02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Sep 2010 21:26:13 +0000 (14:26 -0700)
commit78b620ce9e168d08ecfac2f4bb056c511b0601ec
treed7e59a37b115f52215190a7461cec96bd0247fb2
parentaa8a9e25c5e865de85410be4e9269b552974f7a2
vhost: stop worker only if created

Its currently illegal to call kthread_stop(NULL)

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c