diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 99f15728d9cb..f7f7e5687e46 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1156,7 +1156,7 @@ EXPORT_SYMBOL(netif_device_attach); | |||
1156 | int skb_checksum_help(struct sk_buff *skb) | 1156 | int skb_checksum_help(struct sk_buff *skb) |
1157 | { | 1157 | { |
1158 | __wsum csum; | 1158 | __wsum csum; |
1159 | int ret = 0, offset = skb->h.raw - skb->data; | 1159 | int ret = 0, offset = skb_transport_offset(skb); |
1160 | 1160 | ||
1161 | if (skb->ip_summed == CHECKSUM_COMPLETE) | 1161 | if (skb->ip_summed == CHECKSUM_COMPLETE) |
1162 | goto out_set_summed; | 1162 | goto out_set_summed; |