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)
commit584eab291c67894cb17cc87544b9d086228ea70f
tree46e21a3a2d87392a04e3861c4a2a836085280b9f
parent508b09046c0f21678652fb66fd1e9959d55591d2
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