openvswitch: Fix skb leak in IPv6 reassembly.
authorDaniele Di Proietto <diproiettod@ovn.org>
Mon, 28 Nov 2016 23:43:53 +0000 (15:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 16:00:45 +0000 (11:00 -0500)
commitf92a80a9972175a6a1d36c6c44be47fb0efd020d
treeeb5a009d9cec66c4758bd72773dfb65b6222067a
parentf2ebf2a6ca94e78be179e8c99d34c87efc5e8bfb
openvswitch: Fix skb leak in IPv6 reassembly.

If nf_ct_frag6_gather() returns an error other than -EINPROGRESS, it
means that we still have a reference to the skb.  We should free it
before returning from handle_fragments, as stated in the comment above.

Fixes: daaa7d647f81 ("netfilter: ipv6: avoid nf_iterate recursion")
CC: Florian Westphal <fw@strlen.de>
CC: Pravin B Shelar <pshelar@ovn.org>
CC: Joe Stringer <joe@ovn.org>
Signed-off-by: Daniele Di Proietto <diproiettod@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c