Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199202
b: refs/heads/master
c: a02c378
h: refs/heads/master
v: v3
  • Loading branch information
Takuya Yoshikawa authored and Michael S. Tsirkin committed May 27, 2010
1 parent 4668cec commit 7859775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: d3553a52490dcac54f45083f8fa018e26c22e947
refs/heads/master: a02c37891a9b2d7ce93f9d09455b4f67c4c23b95
4 changes: 3 additions & 1 deletion trunk/drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@ static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m)
return -EFAULT;
}

if (!memory_access_ok(d, newmem, vhost_has_feature(d, VHOST_F_LOG_ALL)))
if (!memory_access_ok(d, newmem, vhost_has_feature(d, VHOST_F_LOG_ALL))) {
kfree(newmem);
return -EFAULT;
}
oldmem = d->memory;
rcu_assign_pointer(d->memory, newmem);
synchronize_rcu();
Expand Down

0 comments on commit 7859775

Please sign in to comment.