diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-22 22:42:36 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-23 14:22:30 +0200 |
commit | 6d11cfdba52af08b889fd6d3ee4212930493eb38 (patch) | |
tree | a6de2aaf9eb6ca94884faa8e56bc2960fd6c1467 /include/linux/netfilter.h | |
parent | 8bc14d25ffb9dfc242d3a877bb4fe683adb27692 (diff) | |
download | linux-stable-6d11cfdba52af08b889fd6d3ee4212930493eb38.tar.gz linux-stable-6d11cfdba52af08b889fd6d3ee4212930493eb38.tar.bz2 linux-stable-6d11cfdba52af08b889fd6d3ee4212930493eb38.zip |
netfilter: don't panic on error while walking through the init path
Don't panic if we hit an error while adding the nf_log or pernet
netfilter support, just bail out.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Gao feng <gaofeng@cn.fujitsu.com>
Diffstat (limited to 'include/linux/netfilter.h')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 0060fde3160e..de70f7b45b68 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -35,7 +35,7 @@ static inline void nf_inet_addr_mask(const union nf_inet_addr *a1, result->all[3] = a1->all[3] & mask->all[3]; } -extern void netfilter_init(void); +extern int netfilter_init(void); /* Largest hook number + 1 */ #define NF_MAX_HOOKS 8 |