@@ -1656,15 +1656,15 @@ static int nf_tables_deltable(struct sk_buff *skb, const struct nfnl_info *info,
1656
1656
return nft_flush_table (& ctx );
1657
1657
}
1658
1658
1659
- static void nf_tables_table_destroy (struct nft_ctx * ctx )
1659
+ static void nf_tables_table_destroy (struct nft_table * table )
1660
1660
{
1661
- if (WARN_ON (ctx -> table -> use > 0 ))
1661
+ if (WARN_ON (table -> use > 0 ))
1662
1662
return ;
1663
1663
1664
- rhltable_destroy (& ctx -> table -> chains_ht );
1665
- kfree (ctx -> table -> name );
1666
- kfree (ctx -> table -> udata );
1667
- kfree (ctx -> table );
1664
+ rhltable_destroy (& table -> chains_ht );
1665
+ kfree (table -> name );
1666
+ kfree (table -> udata );
1667
+ kfree (table );
1668
1668
}
1669
1669
1670
1670
void nft_register_chain_type (const struct nft_chain_type * ctype )
@@ -9521,7 +9521,7 @@ static void nft_commit_release(struct nft_trans *trans)
9521
9521
switch (trans -> msg_type ) {
9522
9522
case NFT_MSG_DELTABLE :
9523
9523
case NFT_MSG_DESTROYTABLE :
9524
- nf_tables_table_destroy (& trans -> ctx );
9524
+ nf_tables_table_destroy (trans -> ctx . table );
9525
9525
break ;
9526
9526
case NFT_MSG_NEWCHAIN :
9527
9527
free_percpu (nft_trans_chain_stats (trans ));
@@ -10518,7 +10518,7 @@ static void nf_tables_abort_release(struct nft_trans *trans)
10518
10518
{
10519
10519
switch (trans -> msg_type ) {
10520
10520
case NFT_MSG_NEWTABLE :
10521
- nf_tables_table_destroy (& trans -> ctx );
10521
+ nf_tables_table_destroy (trans -> ctx . table );
10522
10522
break ;
10523
10523
case NFT_MSG_NEWCHAIN :
10524
10524
if (nft_trans_chain_update (trans ))
@@ -11490,7 +11490,7 @@ static void __nft_release_table(struct net *net, struct nft_table *table)
11490
11490
nft_use_dec (& table -> use );
11491
11491
nf_tables_chain_destroy (chain );
11492
11492
}
11493
- nf_tables_table_destroy (& ctx );
11493
+ nf_tables_table_destroy (table );
11494
11494
}
11495
11495
11496
11496
static void __nft_release_tables (struct net * net )
0 commit comments