aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index e3ae544b3956..64fa7f4c702d 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1199,8 +1199,7 @@ static inline int skb_add_data(struct sk_buff *skb,
1199 1199
1200 if (skb->ip_summed == CHECKSUM_NONE) { 1200 if (skb->ip_summed == CHECKSUM_NONE) {
1201 int err = 0; 1201 int err = 0;
1202 unsigned int csum = csum_and_copy_from_user(from, 1202 __wsum csum = csum_and_copy_from_user(from, skb_put(skb, copy),
1203 skb_put(skb, copy),
1204 copy, 0, &err); 1203 copy, 0, &err);
1205 if (!err) { 1204 if (!err) {
1206 skb->csum = csum_block_add(skb->csum, csum, off); 1205 skb->csum = csum_block_add(skb->csum, csum, off);