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)
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>

No differences found