Skip to content

Commit 26cec9d

Browse files
committed
netfilter: nft_set_pipapo: no need to call pipapo_deactivate() from flush
Use the element object that is already offered instead. Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent a552339 commit 26cec9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/netfilter/nft_set_pipapo.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,8 +1814,9 @@ static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set,
18141814
{
18151815
struct nft_pipapo_elem *e = elem;
18161816

1817-
return pipapo_deactivate(net, set, (const u8 *)nft_set_ext_key(&e->ext),
1818-
&e->ext);
1817+
nft_set_elem_change_active(net, set, &e->ext);
1818+
1819+
return true;
18191820
}
18201821

18211822
/**

0 commit comments

Comments
 (0)