netfilter: accommodate different kconfig in nf_set_hooks_head
authorAaron Conole <aconole@bytheb.org>
Wed, 28 Sep 2016 15:35:15 +0000 (11:35 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Sep 2016 18:15:26 +0000 (20:15 +0200)
commit7816ec564ec40ae20bb7925f733a181cad0cc491
treede2a2b6cd249138f1cb3427126d52716a1df7272
parent5119e4381a90fabd3442bde02707cbd9e5d7367a
netfilter: accommodate different kconfig in nf_set_hooks_head

When CONFIG_NETFILTER_INGRESS is unset (or no), we need to handle
the request for registration properly by dropping the hook.  This
releases the entry during the set.

Fixes: e3b37f11e6e4 ("netfilter: replace list_head with single linked list")
Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/core.c