]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: Avoid duplicate call to nft_data_uninit() for same key
authorThomas Graf <tgraf@suug.ch>
Fri, 1 Aug 2014 15:25:38 +0000 (17:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Aug 2014 16:14:49 +0000 (18:14 +0200)
commit0366c005618871dbd20c8e06c50cf4a32fc2ab13
treea08ecdf611c6900b521b3b15ff6e8c9222c7f9d5
parent027ceb0ebf18b9b73fc493a24282673a46cf0496
netfilter: nf_tables: Avoid duplicate call to nft_data_uninit() for same key

nft_del_setelem() currently calls nft_data_uninit() twice on the same
key. Once to release the key which is guaranteed to be NFT_DATA_VALUE
and a second time in the error path to which it falls through.

The second call has been harmless so far though because the type
passed is always NFT_DATA_VALUE which is currently a no-op.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c