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)
commitfd57d0cbe187e93f63777d36e9f49293311d417f
treed51a0450ffdec9791e2e32e978801908b8eb3d19
parent0d2c96af797ba149e559c5875c0151384ab6dd14
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: d62d0ba97b58 ("netfilter: nf_tables: Introduce stateful object update operation")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c