kernel-fxtec-pro1x/tools/hv
Vitaly Kuznetsov 5bbebceec6 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>
2019-09-10 10:33:50 +01:00
..
hv_fcopy_daemon.c tools: hv: fcopy: set 'error' in case an unknown operation was requested 2018-09-30 08:49:55 -07:00
hv_get_dhcp_info.sh
hv_get_dns_info.sh
hv_kvp_daemon.c Tools: hv: kvp: eliminate 'may be used uninitialized' warning 2019-09-10 10:33:50 +01:00
hv_set_ifconfig.sh
hv_vss_daemon.c tools: hv: fix KVP and VSS daemons exit code 2019-09-06 10:22:00 +02:00
lsvmbus tools: hv: fixed Python pep8/flake8 warnings for lsvmbus 2019-09-06 10:22:00 +02:00
Makefile tools: fix cross-compile var clobbering 2018-02-21 15:35:42 -08:00