]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: core: remove erroneous warn_on
authorFlorian Westphal <fw@strlen.de>
Wed, 6 Sep 2017 12:47:57 +0000 (14:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Sep 2017 16:55:52 +0000 (18:55 +0200)
commit6fe4cf750bbeb451c2fb603a74c96deecb655db0
tree463b7ad2b4db4929cffa275af706f5bda9b65587
parentc577512471f59e5db76b16a5ad43ac5c84af55a8
netfilter: core: remove erroneous warn_on

kernel test robot reported:

WARNING: CPU: 0 PID: 1244 at net/netfilter/core.c:218 __nf_hook_entries_try_shrink+0x49/0xcd
[..]

After allowing batching in nf_unregister_net_hooks its possible that an earlier
call to __nf_hook_entries_try_shrink already compacted the list.
If this happens we don't need to do anything.

Fixes: be93e10394c8a ("netfilter: core: batch nf_unregister_net_hooks synchronize_net calls")
Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/core.c