diff options
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 322b082ede1e..6a06e15694dc 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -400,7 +400,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, | |||
400 | 400 | ||
401 | iph = skb->nh.iph; | 401 | iph = skb->nh.iph; |
402 | 402 | ||
403 | if (ip_fast_csum((u8 *)iph, iph->ihl) != 0) | 403 | if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) |
404 | goto inhdr_error; | 404 | goto inhdr_error; |
405 | 405 | ||
406 | len = ntohs(iph->tot_len); | 406 | len = ntohs(iph->tot_len); |