netfilter: nf_tables: use dev->name directly
authorFlorian Westphal <fw@strlen.de>
Tue, 17 Jul 2018 05:17:53 +0000 (07:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Jul 2018 13:31:43 +0000 (15:31 +0200)
commitb8088dda98b9064a2b3007fe54b03ede70a15602
tree2c231e58617e7cacb2dd007e15691e154f9f4069
parentc293ac959f809ee1cd31609d9e62bccf6804b2e6
netfilter: nf_tables: use dev->name directly

no need to store the name in separate area.

Furthermore, it uses kmalloc but not kfree and most accesses seem to treat
it as char[IFNAMSIZ] not char *.

Remove this and use dev->name instead.

In case event zeroed dev, just omit the name in the dump.

Fixes: d92191aa84e5f1 ("netfilter: nf_tables: cache device name in flowtable object")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c