Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184593
b: refs/heads/master
c: d6db3f5
h: refs/heads/master
i:
  184591: 5b97cb1
v: v3
  • Loading branch information
Michael S. Tsirkin committed Feb 28, 2010
1 parent f6e3d6e commit 69b01a9
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 73a99f083009d67d8e12603420e008d5c21b0b7d
refs/heads/master: d6db3f5c11dc7ed5712d5d5682aa34025ee5248e
3 changes: 2 additions & 1 deletion trunk/drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,9 @@ static int set_bit_to_user(int nr, void __user *addr)
int bit = nr + (log % PAGE_SIZE) * 8;
int r;
r = get_user_pages_fast(log, 1, 1, &page);
if (r)
if (r < 0)
return r;
BUG_ON(r != 1);
base = kmap_atomic(page, KM_USER0);
set_bit(bit, base);
kunmap_atomic(base, KM_USER0);
Expand Down

0 comments on commit 69b01a9

Please sign in to comment.