]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f2d18aa0dea73a93683c944df83efd9eff73c26
tree2c231e58617e7cacb2dd007e15691e154f9f4069
parent7fc603f1f4628eeef942d18506b75cb63ccb7c22
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: 1bbe656caaa151 ("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