netfilter: nf_tables: free set name in error path
authorFlorian Westphal <fw@strlen.de>
Tue, 10 Apr 2018 07:00:24 +0000 (09:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 16:53:58 +0000 (18:53 +0200)
commit321bc88ec098845ec93d047858a010d41be26ed9
tree13a8d87d7434f35eb1938457ff82dcfd56dd2922
parentbca7faea5410d50d2a3be4b11688f02a2fb2ee95
netfilter: nf_tables: free set name in error path

commit 2f6adf481527c8ab8033c601f55bfb5b3712b2ac upstream.

set->name must be free'd here in case ops->init fails.

Fixes: 387454901bd6 ("netfilter: nf_tables: Allow set names of up to 255 chars")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_api.c