]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: add missing error handling code for register functions
authorTaehee Yoo <ap420073@gmail.com>
Thu, 22 Nov 2018 10:59:46 +0000 (19:59 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Nov 2018 23:35:19 +0000 (00:35 +0100)
commit5c113f1a374e2dd0edae1e7cba2b1d6f5e63fc24
tree46e21a3a2d87392a04e3861c4a2a836085280b9f
parent56e406b99ee7ed590e1fc09cb26c25673188d3f8
netfilter: add missing error handling code for register functions

register_{netdevice/inetaddr/inet6addr}_notifier may return an error
value, this patch adds the code to handle these error paths.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/ipv4/nf_nat_masquerade.h
include/net/netfilter/ipv6/nf_nat_masquerade.h
net/ipv4/netfilter/ipt_MASQUERADE.c
net/ipv4/netfilter/nf_nat_masquerade_ipv4.c
net/ipv4/netfilter/nft_masq_ipv4.c
net/ipv6/netfilter/ip6t_MASQUERADE.c
net/ipv6/netfilter/nf_nat_masquerade_ipv6.c
net/ipv6/netfilter/nft_masq_ipv6.c
net/netfilter/nft_flow_offload.c