hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I90CON CVE: NA
--------------------------------
Fix static scanning issue with sysctl_local_port_allocation:
sysctl_local_port_allocation:do not initialise globals to 0.
Fixes: f07a514b584a ("tcp: fix compilation issue when CONFIG_SYSCTL is disabled") Signed-off-by: Zhengchao Shao shaozhengchao@huawei.com --- net/ipv4/inet_hashtables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 6fb12a4d86af..57a207101545 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -28,7 +28,7 @@ #include <net/tcp.h> #include <net/sock_reuseport.h>
-int sysctl_local_port_allocation = 0; +int sysctl_local_port_allocation;
u32 inet_ehashfn(const struct net *net, const __be32 laddr, const __u16 lport, const __be32 faddr,