openvswitch: Fix helper reference leak
authorJoe Stringer <joe@ovn.org>
Wed, 9 Dec 2015 22:07:39 +0000 (14:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2016 04:55:46 +0000 (20:55 -0800)
commit09a44c49189b5fde2e4669e7ee01df5afe703351
tree6e342a2f589ca4305a3f5f66170ca6c5043a0625
parentb3e4752dcd6171498f2413274c537ec1bfea9498
openvswitch: Fix helper reference leak

[ Upstream commit 2f3ab9f9fc23811188b9d07d86e4d99ffee887f4 ]

If the actions (re)allocation fails, or the actions list is larger than the
maximum size, and the conntrack action is the last action when these
problems are hit, then references to helper modules may be leaked. Fix
the issue.

Fixes: cae3a2627520 ("openvswitch: Allow attaching helpers to ct action")
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/openvswitch/conntrack.c