Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84717
b: refs/heads/master
c: c2ec668
h: refs/heads/master
i:
  84715: 5b8110b
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Feb 8, 2008
1 parent f744285 commit 7d6b144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7adfa2ff3efa02a7a9f2632d2d2662d3e5eb5304
refs/heads/master: c2ec66828fd253802abb912668f4bf9597e3c898
4 changes: 4 additions & 0 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,10 @@ static ssize_t aio_rw_vect_retry(struct kiocb *iocb)
opcode = IOCB_CMD_PWRITEV;
}

/* This matches the pread()/pwrite() logic */
if (iocb->ki_pos < 0)
return -EINVAL;

do {
ret = rw_op(iocb, &iocb->ki_iovec[iocb->ki_cur_seg],
iocb->ki_nr_segs - iocb->ki_cur_seg,
Expand Down

0 comments on commit 7d6b144

Please sign in to comment.