diff options
-rw-r--r-- | net/netfilter/nf_tables_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index f1002dcfa1c9..2cb429d34c03 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c | |||
@@ -4024,7 +4024,8 @@ static int nf_tables_abort(struct sk_buff *skb) | |||
4024 | struct nft_trans *trans, *next; | 4024 | struct nft_trans *trans, *next; |
4025 | struct nft_trans_elem *te; | 4025 | struct nft_trans_elem *te; |
4026 | 4026 | ||
4027 | list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) { | 4027 | list_for_each_entry_safe_reverse(trans, next, &net->nft.commit_list, |
4028 | list) { | ||
4028 | switch (trans->msg_type) { | 4029 | switch (trans->msg_type) { |
4029 | case NFT_MSG_NEWTABLE: | 4030 | case NFT_MSG_NEWTABLE: |
4030 | if (nft_trans_table_update(trans)) { | 4031 | if (nft_trans_table_update(trans)) { |