]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: skip module reference count bump on object updates
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Dec 2019 21:25:55 +0000 (22:25 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Dec 2019 12:14:04 +0000 (13:14 +0100)
commit8af5c3768fb318a3d380e5646810612dc7a29658
treed51a0450ffdec9791e2e32e978801908b8eb3d19
parent3354a9a55cc63a3a6a69c8b2aa6146bb60b48a6b
netfilter: nf_tables: skip module reference count bump on object updates

Use __nft_obj_type_get() instead, otherwise there is a module reference
counter leak.

Fixes: e6f2211a958f ("netfilter: nf_tables: Introduce stateful object update operation")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c