diff options
author | Haishuang Yan <yanhaishuang@cmss.chinamobile.com> | 2020-03-30 06:20:15 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-30 22:17:53 +0300 |
commit | e19680f8347ec0e335ae90801fbe42d85d7b385a (patch) | |
tree | 935257263f1062bb2f6c057fcbaf278438b70633 /net/netfilter/nf_flow_table_core.c | |
parent | 2e34328b396a69b73661ba38d47d92b7cf21c2c4 (diff) | |
download | linux-e19680f8347ec0e335ae90801fbe42d85d7b385a.tar.xz |
ipvs: fix uninitialized variable warning
If outer_proto is not set, GCC warning as following:
In file included from net/netfilter/ipvs/ip_vs_core.c:52:
net/netfilter/ipvs/ip_vs_core.c: In function 'ip_vs_in_icmp':
include/net/ip_vs.h:233:4: warning: 'outer_proto' may be used uninitialized in this function [-Wmaybe-uninitialized]
233 | printk(KERN_DEBUG pr_fmt(msg), ##__VA_ARGS__); \
| ^~~~~~
net/netfilter/ipvs/ip_vs_core.c:1666:8: note: 'outer_proto' was declared here
1666 | char *outer_proto;
| ^~~~~~~~~~~
Fixes: 73348fed35d0 ("ipvs: optimize tunnel dumps for icmp errors")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_flow_table_core.c')
0 files changed, 0 insertions, 0 deletions