Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199199
b: refs/heads/master
c: 0f3d9a1
h: refs/heads/master
i:
  199197: 05a90f2
  199195: d28da87
  199191: 40350a3
  199183: a9d3a5f
  199167: 6c41732
v: v3
  • Loading branch information
Krishna Kumar authored and Michael S. Tsirkin committed May 27, 2010
1 parent f7461a4 commit 41ff4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 8a74ad60a546b13bd1096b2a61a7a5c6fd9ae17c
refs/heads/master: 0f3d9a17469d71ba1bab79c07c8eecb9e26e60af
2 changes: 1 addition & 1 deletion trunk/drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
r = get_user(idx, idxp);
if (r < 0)
return r;
if (idx > d->nvqs)
if (idx >= d->nvqs)
return -ENOBUFS;

vq = d->vqs + idx;
Expand Down

0 comments on commit 41ff4b5

Please sign in to comment.