aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/datagram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c
index e2a36f05cdf..774bcd9119d 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -466,7 +466,8 @@ int skb_copy_datagram_from_iovec(struct sk_buff *skb, int offset,
466 if (copy > 0) { 466 if (copy > 0) {
467 if (copy > len) 467 if (copy > len)
468 copy = len; 468 copy = len;
469 if (memcpy_fromiovecend(skb->data + offset, from, 0, copy)) 469 if (memcpy_fromiovecend(skb->data + offset, from, from_offset,
470 copy))
470 goto fault; 471 goto fault;
471 if ((len -= copy) == 0) 472 if ((len -= copy) == 0)
472 return 0; 473 return 0;