diff options
Diffstat (limited to 'include')
-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 31167451d08..c9ef4191607 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1137,7 +1137,7 @@ static inline void skb_gro_reset_offset(struct sk_buff *skb) | |||
1137 | 1137 | ||
1138 | static inline void *skb_gro_mac_header(struct sk_buff *skb) | 1138 | static inline void *skb_gro_mac_header(struct sk_buff *skb) |
1139 | { | 1139 | { |
1140 | return skb_mac_header(skb) < skb->data ? skb_mac_header(skb) : | 1140 | return skb_headlen(skb) ? skb_mac_header(skb) : |
1141 | page_address(skb_shinfo(skb)->frags[0].page) + | 1141 | page_address(skb_shinfo(skb)->frags[0].page) + |
1142 | skb_shinfo(skb)->frags[0].page_offset; | 1142 | skb_shinfo(skb)->frags[0].page_offset; |
1143 | } | 1143 | } |