diff options
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index da584f5ab3d2..4d74d26b8e1a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2283,7 +2283,7 @@ __u32 __skb_get_rxhash(struct sk_buff *skb) | |||
2283 | if (!pskb_may_pull(skb, sizeof(*ip) + nhoff)) | 2283 | if (!pskb_may_pull(skb, sizeof(*ip) + nhoff)) |
2284 | goto done; | 2284 | goto done; |
2285 | 2285 | ||
2286 | ip = (struct iphdr *) skb->data + nhoff; | 2286 | ip = (struct iphdr *) (skb->data + nhoff); |
2287 | if (ip->frag_off & htons(IP_MF | IP_OFFSET)) | 2287 | if (ip->frag_off & htons(IP_MF | IP_OFFSET)) |
2288 | ip_proto = 0; | 2288 | ip_proto = 0; |
2289 | else | 2289 | else |
@@ -2296,7 +2296,7 @@ __u32 __skb_get_rxhash(struct sk_buff *skb) | |||
2296 | if (!pskb_may_pull(skb, sizeof(*ip6) + nhoff)) | 2296 | if (!pskb_may_pull(skb, sizeof(*ip6) + nhoff)) |
2297 | goto done; | 2297 | goto done; |
2298 | 2298 | ||
2299 | ip6 = (struct ipv6hdr *) skb->data + nhoff; | 2299 | ip6 = (struct ipv6hdr *) (skb->data + nhoff); |
2300 | ip_proto = ip6->nexthdr; | 2300 | ip_proto = ip6->nexthdr; |
2301 | addr1 = (__force u32) ip6->saddr.s6_addr32[3]; | 2301 | addr1 = (__force u32) ip6->saddr.s6_addr32[3]; |
2302 | addr2 = (__force u32) ip6->daddr.s6_addr32[3]; | 2302 | addr2 = (__force u32) ip6->daddr.s6_addr32[3]; |