Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136
b: refs/heads/master
c: 1f08ad0
h: refs/heads/master
v: v3
  • Loading branch information
Dave Hansen authored and Linus Torvalds committed Apr 16, 2005
1 parent 7c6f141 commit afcd3cc
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: 22a685d09bb98810670ac0fb02c2138bdbf038cc
refs/heads/master: 1f08ad02379530e1c970d3d104343b9907b4d1b4
4 changes: 2 additions & 2 deletions trunk/fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ static ssize_t do_readv_writev(int type, struct file *file,
void __user *buf = iov[seg].iov_base;
ssize_t len = (ssize_t)iov[seg].iov_len;

if (unlikely(!access_ok(vrfy_dir(type), buf, len)))
goto Efault;
if (len < 0) /* size_t not fitting an ssize_t .. */
goto out;
if (unlikely(!access_ok(vrfy_dir(type), buf, len)))
goto Efault;
tot_len += len;
if ((ssize_t)tot_len < 0) /* maths overflow on the ssize_t */
goto out;
Expand Down

0 comments on commit afcd3cc

Please sign in to comment.