Revert "netfilter: nf_tables: missing iterator type in lookup walk"
This reverts commit 7d63704581
.
This commit is contained in:
parent
147ce5e81c
commit
334f161f67
2 changed files with 1 additions and 3 deletions
|
@ -207,7 +207,6 @@ static int nft_lookup_validate(const struct nft_ctx *ctx,
|
|||
return 0;
|
||||
|
||||
iter.genmask = nft_genmask_next(ctx->net);
|
||||
iter.type = NFT_ITER_UPDATE;
|
||||
iter.skip = 0;
|
||||
iter.count = 0;
|
||||
iter.err = 0;
|
||||
|
|
|
@ -2030,8 +2030,7 @@ static void nft_pipapo_walk(const struct nft_ctx *ctx, struct nft_set *set,
|
|||
struct nft_pipapo_field *f;
|
||||
int i, r;
|
||||
|
||||
WARN_ON_ONCE(iter->type != NFT_ITER_READ &&
|
||||
iter->type != NFT_ITER_UPDATE);
|
||||
WARN_ON_ONCE(iter->type == NFT_ITER_UNSPEC);
|
||||
|
||||
rcu_read_lock();
|
||||
if (iter->type == NFT_ITER_READ)
|
||||
|
|
Loading…
Add table
Reference in a new issue