diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-09-02 13:16:36 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-09-06 08:49:39 +0200 |
commit | 615cc2211c17ed05a2a5d94abdac6c340a8ea508 (patch) | |
tree | e77b7442532bce0521f1da3cfcb985111e3ab1f1 /drivers/vhost/vhost.c | |
parent | vhost: fix attach to cgroups regression (diff) | |
download | linux-615cc2211c17ed05a2a5d94abdac6c340a8ea508.tar.xz linux-615cc2211c17ed05a2a5d94abdac6c340a8ea508.zip |
vhost: error handling fix
vhost should set worker to NULL on cgroups attach failure,
so that we won't try to destroy the worker again on close.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/vhost.c')
-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) return 0; err_cgroup: kthread_stop(worker); + dev->worker = NULL; err_worker: if (dev->mm) mmput(dev->mm); |