]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: nf_tables: prohibit deletion of a table with existing sets
authorPatrick McHardy <kaber@trash.net>
Thu, 9 Jan 2014 18:42:41 +0000 (18:42 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jan 2014 19:17:16 +0000 (20:17 +0100)
commit44a6f0df039ee7ddeebc88327dd61f0afb53baa7
tree85d4b88176be4fad900c0535fc45a9b87ef07667
parent7047f9d052c379e14b7693bb9f1b766827d0bc40
netfilter: nf_tables: prohibit deletion of a table with existing sets

We currently leak the set memory when deleting a table that still has
sets in it. Return EBUSY when attempting to delete a table with sets.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c