diff --git a/net/core/skbuff.c b/net/core/skbuff.c index a00808f7be6a..4a41dccffc03 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -2288,6 +2288,7 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, * optimized for the cases when header is void. */ memcpy(data + nhead, skb->head, skb_tail_pointer(skb) - skb->head); + memset(data, 0, nhead + skb_headroom(skb)); memcpy((struct skb_shared_info *)(data + size), skb_shinfo(skb),