aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/netpoll.c2
-rw-r--r--net/core/skbuff.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 57a82445c465..1fb30c3528bc 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -293,7 +293,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
293 if (!skb) 293 if (!skb)
294 return; 294 return;
295 295
296 memcpy(skb->data, msg, len); 296 skb_copy_to_linear_data(skb, msg, len);
297 skb->len += len; 297 skb->len += len;
298 298
299 skb_push(skb, sizeof(*udph)); 299 skb_push(skb, sizeof(*udph));
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 17c6bb5927b6..331d3efa82fa 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1129,7 +1129,7 @@ int skb_store_bits(const struct sk_buff *skb, int offset, void *from, int len)
1129 if ((copy = start - offset) > 0) { 1129 if ((copy = start - offset) > 0) {
1130 if (copy > len) 1130 if (copy > len)
1131 copy = len; 1131 copy = len;
1132 memcpy(skb->data + offset, from, copy); 1132 skb_copy_to_linear_data_offset(skb, offset, from, copy);
1133 if ((len -= copy) == 0) 1133 if ((len -= copy) == 0)
1134 return 0; 1134 return 0;
1135 offset += copy; 1135 offset += copy;