diff options
-rw-r--r-- | net/core/skbuff.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 142257307fa2..7c6a34e21eee 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -644,11 +644,10 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, | |||
644 | 644 | ||
645 | /* Copy only real data... and, alas, header. This should be | 645 | /* Copy only real data... and, alas, header. This should be |
646 | * optimized for the cases when header is void. */ | 646 | * optimized for the cases when header is void. */ |
647 | memcpy(data + nhead, skb->head, | ||
648 | #ifdef NET_SKBUFF_DATA_USES_OFFSET | 647 | #ifdef NET_SKBUFF_DATA_USES_OFFSET |
649 | skb->tail); | 648 | memcpy(data + nhead, skb->head, skb->tail); |
650 | #else | 649 | #else |
651 | skb->tail - skb->head); | 650 | memcpy(data + nhead, skb->head, skb->tail - skb->head); |
652 | #endif | 651 | #endif |
653 | memcpy(data + size, skb_end_pointer(skb), | 652 | memcpy(data + size, skb_end_pointer(skb), |
654 | sizeof(struct skb_shared_info)); | 653 | sizeof(struct skb_shared_info)); |