Re: [PATCH net] hvsock: fix epollout hang from race condition
From: David Miller
Date: Fri Jun 14 2019 - 22:19:48 EST
This adds lots of new warnings:
net/vmw_vsock/hyperv_transport.c: In function ʽhvs_probeʼ:
net/vmw_vsock/hyperv_transport.c:205:20: warning: ʽvnewʼ may be used uninitialized in this function [-Wmaybe-uninitialized]
remote->svm_port = host_ephemeral_port++;
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
net/vmw_vsock/hyperv_transport.c:332:21: note: ʽvnewʼ was declared here
struct vsock_sock *vnew;
^~~~
net/vmw_vsock/hyperv_transport.c:406:22: warning: ʽhvs_newʼ may be used uninitialized in this function [-Wmaybe-uninitialized]
hvs_new->vm_srv_id = *if_type;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
net/vmw_vsock/hyperv_transport.c:333:23: note: ʽhvs_newʼ was declared here
struct hvsock *hvs, *hvs_new;
^~~~~~~