net: BUG instead of corrupting memory in pskb_expand_head
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 1 Oct 2008 14:09:38 +0000 (07:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2008 14:09:38 +0000 (07:09 -0700)
commit4edd87ad5cad8e159e0db3ce3131b3d97219c9cd
tree6e5fc3c1e9de04a82bd536d9d8c2319f3e278501
parent12a169e7d8f4b1c95252d8b04ed0f1033ed7cfe2
net: BUG instead of corrupting memory in pskb_expand_head

If the caller of pskb_expand_head specifies a negative nhead
we'll silently overwrite other people's memory.  This patch
makes it BUG instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c