Commit 78b620ce authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

vhost: stop worker only if created

Its currently illegal to call kthread_stop(NULL)

Reported-by: default avatarIngo Molnar <>
Signed-off-by: default avatarEric Dumazet <>
Acked-by: default avatarTejun Heo <>
Signed-off-by: default avatarDavid S. Miller <>
parent aa8a9e25
......@@ -323,7 +323,10 @@ void vhost_dev_cleanup(struct vhost_dev *dev)
dev->mm = NULL;
if (dev->worker) {
dev->worker = NULL;
static int log_access_ok(void __user *log_base, u64 addr, unsigned long sz)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment