From ca44ac386181ba710a9ab6db900d6c1e5451b366 Mon Sep 17 00:00:00 2001 From: Changli Gao Date: Mon, 29 Nov 2010 22:48:46 +0000 Subject: [PATCH] net: don't reallocate skb->head unless the current one hasn't the needed extra size or is shared skb head being allocated by kmalloc(), it might be larger than what actually requested because of discrete kmem caches sizes. Before reallocating a new skb head, check if the current one has the needed extra size. Do this check only if skb head is not shared. Signed-off-by: Changli Gao Cc: Eric Dumazet Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-format-patch failed