Skip to content

Commit

Permalink
netfilter: nft_set_pipapo: no need to call pipapo_deactivate() from f…
Browse files Browse the repository at this point in the history
…lush

Use the element object that is already offered instead.

Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
ummakynes committed Oct 24, 2023
1 parent a552339 commit 26cec9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/netfilter/nft_set_pipapo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,8 +1814,9 @@ static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set,
{
struct nft_pipapo_elem *e = elem;

return pipapo_deactivate(net, set, (const u8 *)nft_set_ext_key(&e->ext),
&e->ext);
nft_set_elem_change_active(net, set, &e->ext);

return true;
}

/**
Expand Down

0 comments on commit 26cec9d

Please sign in to comment.