diff --git a/net/netfilter/core.c b/net/netfilter/core.c index ef4e76e5aef9..edf69d52675b 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -473,10 +473,13 @@ static bool nf_remove_net_hook(struct nf_hook_entries *old, struct nf_hook_ops **orig_ops; unsigned int i; + printk("%p, %p, %s\n", old, unreg, __func__); orig_ops = nf_hook_entries_get_hook_ops(old); for (i = 0; i < old->num_hook_entries; i++) { - if (orig_ops[i] != unreg) + if (orig_ops[i] != unreg) { + printk("%p, %d\n", orig_ops[i], i, __func__); continue; + } WRITE_ONCE(old->hooks[i].hook, accept_all); WRITE_ONCE(orig_ops[i], (void *)&dummy_ops); return true;