commit | a72b69dc083a931422cc8a5e33841aff7d5312f2 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Thu Nov 09 13:29:10 2017 +0000 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue Nov 14 23:57:40 2017 +0200 |
tree | ddc2e24355087e2f72179b4b6e01cd27d415f974 | |
parent | ca2c5b33a285723f517fa296b76f7fd36c383dad [diff] |
vhost/vsock: fix uninitialized vhost_vsock->guest_cid The vhost_vsock->guest_cid field is uninitialized when /dev/vhost-vsock is opened until the VHOST_VSOCK_SET_GUEST_CID ioctl is called. kvmalloc(..., GFP_KERNEL | __GFP_RETRY_MAYFAIL) does not zero memory. All other vhost_vsock fields are initialized explicitly so just initialize this field too. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>