Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110250
b: refs/heads/master
c: efc968d
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Oct 9, 2008
1 parent 794479b commit f84e36e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 07f405541892bd9bab4cca6c12499091ef4dd556
refs/heads/master: efc968d450e013049a662d22727cf132618dcb2f
3 changes: 3 additions & 0 deletions trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
if (unlikely(!(out->f_mode & FMODE_WRITE)))
return -EBADF;

if (unlikely(out->f_flags & O_APPEND))
return -EINVAL;

ret = rw_verify_area(WRITE, out, ppos, len);
if (unlikely(ret < 0))
return ret;
Expand Down

0 comments on commit f84e36e

Please sign in to comment.