]> Git Repo - linux.git/commit
netfilter: nf_tables: fix wrong pointer passed to PTR_ERR()
authorYang Yingliang <[email protected]>
Thu, 19 Jan 2023 07:51:25 +0000 (15:51 +0800)
committerPablo Neira Ayuso <[email protected]>
Wed, 1 Feb 2023 11:18:51 +0000 (12:18 +0100)
commit1fb7696ac6c3ac470dd002e639af80e7e170b25f
tree71942f76c94f81111dd3ac610f460bf023f48333
parentdac7f50a45216d652887fb92d6cd3b7ca7f006ea
netfilter: nf_tables: fix wrong pointer passed to PTR_ERR()

It should be 'chain' passed to PTR_ERR() in the error path
after calling nft_chain_lookup() in nf_tables_delrule().

Fixes: f80a612dd77c ("netfilter: nf_tables: add support to destroy operation")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Acked-by: Fernando Fernandez Mancera <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
net/netfilter/nf_tables_api.c
This page took 0.044179 seconds and 4 git commands to generate.