skbuff: don't corrupt mac_header on skb expansion
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 17 Jun 2009 12:17:34 +0000 (12:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jun 2009 01:46:41 +0000 (18:46 -0700)
commit603a8bbe62e54108055fca46ecdd611c10c6cd0a
tree5d6c6f449cadf7c956f02c399b26460c7c8a20a0
parent19633e129c65e5bb62b1af545c5479afcdb01fc4
skbuff: don't corrupt mac_header on skb expansion

The skb mac_header field is sometimes NULL (or ~0u) as a sentinel
value. The places where skb is expanded add an offset which would
change this flag into an invalid pointer (or offset).

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c