diff options
Diffstat (limited to 'net/ipv4/ip_fragment.c')
-rw-r--r-- | net/ipv4/ip_fragment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index d7fa2bf3a0c1..32108cf2a784 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -739,7 +739,7 @@ out_fail: | |||
739 | } | 739 | } |
740 | 740 | ||
741 | /* Process an incoming IP datagram fragment. */ | 741 | /* Process an incoming IP datagram fragment. */ |
742 | struct sk_buff *ip_defrag(struct sk_buff *skb, u32 user) | 742 | int ip_defrag(struct sk_buff *skb, u32 user) |
743 | { | 743 | { |
744 | struct ipq *qp; | 744 | struct ipq *qp; |
745 | 745 | ||
@@ -759,12 +759,12 @@ struct sk_buff *ip_defrag(struct sk_buff *skb, u32 user) | |||
759 | 759 | ||
760 | spin_unlock(&qp->lock); | 760 | spin_unlock(&qp->lock); |
761 | ipq_put(qp, NULL); | 761 | ipq_put(qp, NULL); |
762 | return ret ? NULL : skb; | 762 | return ret; |
763 | } | 763 | } |
764 | 764 | ||
765 | IP_INC_STATS_BH(IPSTATS_MIB_REASMFAILS); | 765 | IP_INC_STATS_BH(IPSTATS_MIB_REASMFAILS); |
766 | kfree_skb(skb); | 766 | kfree_skb(skb); |
767 | return NULL; | 767 | return -ENOMEM; |
768 | } | 768 | } |
769 | 769 | ||
770 | void __init ipfrag_init(void) | 770 | void __init ipfrag_init(void) |