Skip to content

Commit

Permalink
econet: Fix redeclaration of symbol len
Browse files Browse the repository at this point in the history
Function argument len was redeclarated within the
function. This patch fix the redeclaration of symbol 'len'.

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hagen Paul Pfeifer authored and David S. Miller committed Oct 7, 2009
1 parent 49b4ad9 commit 9e83429
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 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 9e83429

Please sign in to comment.