OSDN Git Service

netfilter: nf_tables_offload: unbind if multi-device binding fails
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Oct 2019 08:30:19 +0000 (10:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 26 Oct 2019 10:36:44 +0000 (12:36 +0200)
commit671312e1a05c579714bc08eb2ac3ad5a2c86a10e
treee91dd259fd6cd6ce3c714b996f84f38a28eacec7
parent75ceaf862d2c7eb38ba41ddc857618aa4b28b0a2
netfilter: nf_tables_offload: unbind if multi-device binding fails

nft_flow_block_chain() needs to unbind in case of error when performing
the multi-device binding.

Fixes: d54725cd11a5 ("netfilter: nf_tables: support for multiple devices per netdev hook")
Reported-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_offload.c