projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelv...
[deliverable/linux.git]
/
net
/
core
/
iovec.c
diff --git
a/net/core/iovec.c
b/net/core/iovec.c
index 40a76ce19d9fddfb90d2b21f282135e4d1bef239..16ad45d4882b56a2c531a0a944bc31c690ff5a4b 100644
(file)
--- a/
net/core/iovec.c
+++ b/
net/core/iovec.c
@@
-112,9
+112,9
@@
int memcpy_toiovecend(const struct iovec *iov, unsigned char *kdata,
continue;
}
copy = min_t(unsigned int, iov->iov_len - offset, len);
- offset = 0;
- if (copy_to_user(iov->iov_base, kdata, copy))
+ if (copy_to_user(iov->iov_base + offset, kdata, copy))
return -EFAULT;
+ offset = 0;
kdata += copy;
len -= copy;
}
This page took
0.02858 seconds
and
5
git commands to generate.