aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r--net/netfilter/nf_tables_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 2cb429d34c03..120e9ae04db3 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -1996,7 +1996,7 @@ static void nf_tables_rule_destroy(const struct nft_ctx *ctx,
1996 * is called on error from nf_tables_newrule(). 1996 * is called on error from nf_tables_newrule().
1997 */ 1997 */
1998 expr = nft_expr_first(rule); 1998 expr = nft_expr_first(rule);
1999 while (expr->ops && expr != nft_expr_last(rule)) { 1999 while (expr != nft_expr_last(rule) && expr->ops) {
2000 nf_tables_expr_destroy(ctx, expr); 2000 nf_tables_expr_destroy(ctx, expr);
2001 expr = nft_expr_next(expr); 2001 expr = nft_expr_next(expr);
2002 } 2002 }