android_kernel_samsung_a7y1.../tools/hv
Vitaly Kuznetsov 023704900a Tools: hv: kvp: eliminate 'may be used uninitialized' warning
[ Upstream commit 89eb4d8d25722a0a0194cf7fa47ba602e32a6da7 ]

When building hv_kvp_daemon GCC-8.3 complains:

hv_kvp_daemon.c: In function ‘kvp_get_ip_info.constprop’:
hv_kvp_daemon.c:812:30: warning: ‘ip_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  struct hv_kvp_ipaddr_value *ip_buffer;

this seems to be a false positive: we only use ip_buffer when
op == KVP_OP_GET_IP_INFO and it is only unset when op == KVP_OP_ENUMERATE.

Silence the warning by initializing ip_buffer to NULL.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 21:34:23 +02:00
..
hv_fcopy_daemon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hv_get_dhcp_info.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hv_get_dns_info.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hv_kvp_daemon.c Tools: hv: kvp: eliminate 'may be used uninitialized' warning 2020-04-06 21:34:23 +02:00
hv_set_ifconfig.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hv_vss_daemon.c tools: hv: fix KVP and VSS daemons exit code 2020-04-06 21:33:12 +02:00
lsvmbus A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30