Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149714
b: refs/heads/master
c: 7acd4a7
h: refs/heads/master
v: v3
  • Loading branch information
Andy Grover authored and David S. Miller committed Apr 10, 2009
1 parent 8c2c3e2 commit 40c831c
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: 7b70d0336da777c00395cc7a503497c2cdabd1a8
refs/heads/master: 7acd4a794c1530af063e51f3f7171e75556458f3
2 changes: 1 addition & 1 deletion trunk/net/rds/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages,
nr_pages, write, 0, pages, NULL);
up_read(&current->mm->mmap_sem);

if (0 <= ret && (unsigned) ret < nr_pages) {
if (ret >= 0 && ret < nr_pages) {
while (ret--)
put_page(pages[ret]);
ret = -EFAULT;
Expand Down

0 comments on commit 40c831c

Please sign in to comment.