[NET]: Fix OOPS due to missing check in dev_parse_header().
authorPatrick McHardy <kaber@trash.net>
Thu, 18 Oct 2007 12:09:28 +0000 (05:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2007 12:09:28 +0000 (05:09 -0700)
commit1b83336bb9fa4f110b5b0a4378a82cd5f0fd0ac8
tree0eb85178fe55ac084d2e62037432a1f8ae48b74d
parentdf2e014bfbbf26d160e1bf47b05fc05c96205e2b
[NET]: Fix OOPS due to missing check in dev_parse_header().

[ This is kernel bugzilla 9174 "linux-2.6.23-git11 kernel panic" ]

The device in question is an IPv6-over-IPv4 tunnel, which doesn't have
any header_ops, so the crash happens in dev_parse_header when
dereferencing them.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h