diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a5e2dc1f0d98..6f85db3535e2 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -845,7 +845,7 @@ static inline int dev_parse_header(const struct sk_buff *skb, | |||
845 | { | 845 | { |
846 | const struct net_device *dev = skb->dev; | 846 | const struct net_device *dev = skb->dev; |
847 | 847 | ||
848 | if (!dev->header_ops->parse) | 848 | if (!dev->header_ops || !dev->header_ops->parse) |
849 | return 0; | 849 | return 0; |
850 | return dev->header_ops->parse(skb, haddr); | 850 | return dev->header_ops->parse(skb, haddr); |
851 | } | 851 | } |