]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9180047f42ce318a1587509601ebca58d73ddae
tree5d6c6f449cadf7c956f02c399b26460c7c8a20a0
parentea131cb7a2b3e1d82d11e9fa0fdb867883165b62
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