commit | 615cc2211c17ed05a2a5d94abdac6c340a8ea508 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Thu Sep 02 14:16:36 2010 +0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Mon Sep 06 09:49:39 2010 +0300 |
tree | e77b7442532bce0521f1da3cfcb985111e3ab1f1 | |
parent | 87d6a412bd1ed82c14cabd4b408003b23bbd2880 [diff] [blame] |
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>
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 1afa085..c579dcc 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c
@@ -298,6 +298,7 @@ return 0; err_cgroup: kthread_stop(worker); + dev->worker = NULL; err_worker: if (dev->mm) mmput(dev->mm);