diff options
Diffstat (limited to 'net/ipv4/ip_fragment.c')
-rw-r--r-- | net/ipv4/ip_fragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index e5b6d0ddcb58..2c8d98e728c0 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -664,7 +664,7 @@ struct sk_buff *ip_check_defrag(struct sk_buff *skb, u32 user) | |||
664 | if (skb->protocol != htons(ETH_P_IP)) | 664 | if (skb->protocol != htons(ETH_P_IP)) |
665 | return skb; | 665 | return skb; |
666 | 666 | ||
667 | if (!skb_copy_bits(skb, 0, &iph, sizeof(iph))) | 667 | if (skb_copy_bits(skb, 0, &iph, sizeof(iph)) < 0) |
668 | return skb; | 668 | return skb; |
669 | 669 | ||
670 | if (iph.ihl < 5 || iph.version != 4) | 670 | if (iph.ihl < 5 || iph.version != 4) |