aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/iovec.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/iovec.c')
-rw-r--r--net/core/iovec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/core/iovec.c b/net/core/iovec.c
index a215545c0a34..40a76ce19d9f 100644
--- a/net/core/iovec.c
+++ b/net/core/iovec.c
@@ -147,10 +147,11 @@ int memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len)
147} 147}
148 148
149/* 149/*
150 * For use with ip_build_xmit 150 * Copy iovec from kernel. Returns -EFAULT on error.
151 */ 151 */
152int memcpy_fromiovecend(unsigned char *kdata, struct iovec *iov, int offset, 152
153 int len) 153int memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov,
154 int offset, int len)
154{ 155{
155 /* Skip over the finished iovecs */ 156 /* Skip over the finished iovecs */
156 while (offset >= iov->iov_len) { 157 while (offset >= iov->iov_len) {