Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225151
b: refs/heads/master
c: 533a19b
h: refs/heads/master
i:
  225149: f3bf2d6
  225147: 481559a
  225143: c253605
  225135: 7243018
  225119: d6fe045
  225087: 9a9037b
  225023: 9e9815e
v: v3
  • Loading branch information
Michael S. Tsirkin committed Nov 4, 2010
1 parent a257c55 commit 47ffeee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fcedec752108de5d99b9f0373ff880756a1e87d
refs/heads/master: 533a19b4b88fcf81da3106b94f0ac4ac8b33a248
7 changes: 3 additions & 4 deletions trunk/drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,14 @@ void vhost_dev_cleanup(struct vhost_dev *dev)
kfree(rcu_dereference_protected(dev->memory,
lockdep_is_held(&dev->mutex)));
RCU_INIT_POINTER(dev->memory, NULL);
if (dev->mm)
mmput(dev->mm);
dev->mm = NULL;

WARN_ON(!list_empty(&dev->work_list));
if (dev->worker) {
kthread_stop(dev->worker);
dev->worker = NULL;
}
if (dev->mm)
mmput(dev->mm);
dev->mm = NULL;
}

static int log_access_ok(void __user *log_base, u64 addr, unsigned long sz)
Expand Down

0 comments on commit 47ffeee

Please sign in to comment.