Commit d7c03a9
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: c29f74e ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 63b48c7 commit d7c03a9
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6006 | 6006 | | |
6007 | 6007 | | |
6008 | 6008 | | |
6009 | | - | |
6010 | | - | |
6011 | | - | |
| 6009 | + | |
| 6010 | + | |
| 6011 | + | |
6012 | 6012 | | |
6013 | 6013 | | |
6014 | 6014 | | |
| 6015 | + | |
| 6016 | + | |
| 6017 | + | |
| 6018 | + | |
| 6019 | + | |
| 6020 | + | |
| 6021 | + | |
| 6022 | + | |
6015 | 6023 | | |
6016 | 6024 | | |
6017 | 6025 | | |
| |||
0 commit comments