Commit 9e834297 authored by Hagen Paul Pfeifer's avatar Hagen Paul Pfeifer Committed by David S. Miller

econet: Fix redeclaration of symbol len

Function argument len was redeclarated within the
function. This patch fix the redeclaration of symbol 'len'.
Signed-off-by: default avatarHagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49b4ad92
...@@ -457,15 +457,15 @@ static int econet_sendmsg(struct kiocb *iocb, struct socket *sock, ...@@ -457,15 +457,15 @@ static int econet_sendmsg(struct kiocb *iocb, struct socket *sock,
iov[0].iov_len = size; iov[0].iov_len = size;
for (i = 0; i < msg->msg_iovlen; i++) { for (i = 0; i < msg->msg_iovlen; i++) {
void __user *base = msg->msg_iov[i].iov_base; 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. */ /* 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); mutex_unlock(&econet_mutex);
return -EFAULT; return -EFAULT;
} }
iov[i+1].iov_base = base; iov[i+1].iov_base = base;
iov[i+1].iov_len = len; iov[i+1].iov_len = iov_len;
size += len; size += iov_len;
} }
/* Get a skbuff (no data, just holds our cb information) */ /* Get a skbuff (no data, just holds our cb information) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment