summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorNikolay Borisov2015-12-07 11:13:26 +0100
committerPablo Neira Ayuso2015-12-09 14:46:47 +0100
commit639e077b43d9c54ffb1e1b54a2de54597ceae1d8 (patch)
tree1088e48a056962e3c8dc306d35979a8825b34550 /net/netfilter/nf_tables_api.c
parentnetfilter: nfnetlink_queue: avoid harmless unnitialized variable warnings (diff)
downloadkernel-qcow2-linux-639e077b43d9c54ffb1e1b54a2de54597ceae1d8.tar.gz
kernel-qcow2-linux-639e077b43d9c54ffb1e1b54a2de54597ceae1d8.tar.xz
kernel-qcow2-linux-639e077b43d9c54ffb1e1b54a2de54597ceae1d8.zip
netfilter: nfnetlink_queue: Unregister pernet subsys in case of init failure
Commit 3bfe049807c2403 ("netfilter: nfnetlink_{log,queue}: Register pernet in first place") reorganised the initialisation order of the pernet_subsys to avoid "use-before-initialised" condition. However, in doing so the cleanup logic in nfnetlink_queue got botched in that the pernet_subsys wasn't cleaned in case nfnetlink_subsys_register failed. This patch adds the necessary cleanup routine call. Fixes: 3bfe049807c2403 ("netfilter: nfnetlink_{log,queue}: Register pernet in first place") Signed-off-by: Nikolay Borisov <kernel@kyup.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
0 files changed, 0 insertions, 0 deletions