diff options
-rw-r--r-- | drivers/vhost/vhost.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 1afa08527e08..c579dcc9200c 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
@@ -298,6 +298,7 @@ static long vhost_dev_set_owner(struct vhost_dev *dev) | |||
298 | return 0; | 298 | return 0; |
299 | err_cgroup: | 299 | err_cgroup: |
300 | kthread_stop(worker); | 300 | kthread_stop(worker); |
301 | dev->worker = NULL; | ||
301 | err_worker: | 302 | err_worker: |
302 | if (dev->mm) | 303 | if (dev->mm) |
303 | mmput(dev->mm); | 304 | mmput(dev->mm); |