Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27215
b: refs/heads/master
c: 9917215
h: refs/heads/master
i:
  27213: 776c378
  27211: a6e2813
  27207: 715d0d6
  27199: 0b02387
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jun 17, 2006
1 parent a0932a9 commit cf19f01
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 16070428d389ff47aa3476b0911179ad90c640a2
refs/heads/master: 991721572ef2140c6411894aebefd3377e71a9e7
5 changes: 3 additions & 2 deletions trunk/fs/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,10 @@ static struct bio *__bio_map_user_iov(request_queue_t *q,
write_to_vm, 0, &pages[cur_page], NULL);
up_read(&current->mm->mmap_sem);

if (ret < local_nr_pages)
if (ret < local_nr_pages) {
ret = -EFAULT;
goto out_unmap;

}

offset = uaddr & ~PAGE_MASK;
for (j = cur_page; j < page_limit; j++) {
Expand Down

0 comments on commit cf19f01

Please sign in to comment.