Re: [PATCH virt] virt: fix uninit-value in vhost_vsock_dev_open

From: Jeongjun Park
Date: Sat Apr 20 2024 - 23:06:26 EST


static bool vhost_transport_seqpacket_allow(u32 remote_cid)
{
...
vsock = vhost_vsock_get(remote_cid);

if (vsock)
seqpacket_allow = vsock->seqpacket_allow;
...
}

I think this is due to reading a previously created uninitialized
vsock->seqpacket_allow inside vhost_transport_seqpacket_allow(),
which is executed by the function pointer present in the if statement.

Thanks