netfilter: nf_tables: Fix an Oops in nf_tables_updobj() error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Sep 2019 08:18:08 +0000 (11:18 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 8 Sep 2019 16:10:13 +0000 (18:10 +0200)
commitb74ae9618b15de8e9d5a08bc1fb2eeaf504986d4
tree2c6c0cd4ff9d1d5a3a61ce9fa03f19e6f0b5c137
parent6703a605b5ab33502d7a327de880188013d7c377
netfilter: nf_tables: Fix an Oops in nf_tables_updobj() error handling

The "newobj" is an error pointer so we can't pass it to kfree().  It
doesn't need to be freed so we can remove that and I also renamed the
error label.

Fixes: d62d0ba97b58 ("netfilter: nf_tables: Introduce stateful object update operation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c