Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223489
b: refs/heads/master
c: 361cf40
h: refs/heads/master
i:
  223487: d7ceef3
v: v3
  • Loading branch information
Henry C Chang authored and Sage Weil committed Dec 17, 2010
1 parent dcff2d1 commit 6eec269
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: b6aa5901c7a2bd90d0b6b9866300d2648b2568f3
refs/heads/master: 361cf40519a491f68b28ad90225e4611c4bf8e12
4 changes: 2 additions & 2 deletions trunk/net/ceph/pagevec.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ struct page **ceph_get_direct_page_vector(const char __user *data,
rc = get_user_pages(current, current->mm, (unsigned long)data,
num_pages, write_page, 0, pages, NULL);
up_read(&current->mm->mmap_sem);
if (rc < 0)
if (rc < num_pages)
goto fail;
return pages;

fail:
kfree(pages);
ceph_put_page_vector(pages, rc > 0 ? rc : 0, false);
return ERR_PTR(rc);
}
EXPORT_SYMBOL(ceph_get_direct_page_vector);
Expand Down

0 comments on commit 6eec269

Please sign in to comment.