diff options
author | David S. Miller | 2019-02-20 09:34:07 +0100 |
---|---|---|
committer | David S. Miller | 2019-02-20 09:34:07 +0100 |
commit | 375ca548f7e3ac82acdd0959eddd1fa0e17c35cc (patch) | |
tree | 5360dc427e4eff7123613419ee522b7fda831de0 /net/netfilter/nf_tables_api.c | |
parent | ptp_qoriq: don't pass a large struct by value but instead pass it by reference (diff) | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | kernel-qcow2-linux-375ca548f7e3ac82acdd0959eddd1fa0e17c35cc.tar.gz kernel-qcow2-linux-375ca548f7e3ac82acdd0959eddd1fa0e17c35cc.tar.xz kernel-qcow2-linux-375ca548f7e3ac82acdd0959eddd1fa0e17c35cc.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Two easily resolvable overlapping change conflicts, one in
TCP and one in the eBPF verifier.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r-- | net/netfilter/nf_tables_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index de3f1e2acae0..e1a88ba2249e 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -328,6 +328,9 @@ static int nft_delrule_by_chain(struct nft_ctx *ctx) int err; list_for_each_entry(rule, &ctx->chain->rules, list) { + if (!nft_is_active_next(ctx->net, rule)) + continue; + err = nft_delrule(ctx, rule); if (err < 0) return err; |