]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: check if bind callback fails and unbind if hook registration...
authorwenxu <wenxu@ucloud.cn>
Fri, 15 Nov 2019 11:21:26 +0000 (19:21 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 15 Nov 2019 22:44:53 +0000 (23:44 +0100)
commit2a3ddf8a1a836f4264bf4ceefb4d5e8ce3d5e4c8
tree691b13a7abfaa99d147a3a003c905f8632050be7
parentaca0412802c9b131a590e20488e8a41fc3eb7638
netfilter: nf_tables: check if bind callback fails and unbind if hook registration fails

Undo the callback binding before unregistering the existing hooks. This
should also check for error of the bind setup call.

Fixes: c550be63df75 ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c