Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170478
b: refs/heads/master
c: 9e83429
h: refs/heads/master
v: v3
  • Loading branch information
Hagen Paul Pfeifer authored and David S. Miller committed Oct 7, 2009
1 parent 2ca4c44 commit ff31b9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 49b4ad92d1a5bb9909deb3216ffec6f0febc7b71
refs/heads/master: 9e8342971d44ce86d8567047f5366fc1c06a75ed
8 changes: 4 additions & 4 deletions trunk/net/econet/af_econet.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,15 @@ static int econet_sendmsg(struct kiocb *iocb, struct socket *sock,
iov[0].iov_len = size;
for (i = 0; i < msg->msg_iovlen; i++) {
void __user *base = msg->msg_iov[i].iov_base;
size_t len = msg->msg_iov[i].iov_len;
size_t iov_len = msg->msg_iov[i].iov_len;
/* Check it now since we switch to KERNEL_DS later. */
if (!access_ok(VERIFY_READ, base, len)) {
if (!access_ok(VERIFY_READ, base, iov_len)) {
mutex_unlock(&econet_mutex);
return -EFAULT;
}
iov[i+1].iov_base = base;
iov[i+1].iov_len = len;
size += len;
iov[i+1].iov_len = iov_len;
size += iov_len;
}

/* Get a skbuff (no data, just holds our cb information) */
Expand Down

0 comments on commit ff31b9c

Please sign in to comment.