aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2017-11-09 13:29:10 +0000
committerMichael S. Tsirkin <mst@redhat.com>2017-11-14 23:57:40 +0200
commita72b69dc083a931422cc8a5e33841aff7d5312f2 (patch)
treeddc2e24355087e2f72179b4b6e01cd27d415f974 /block
parentvhost: fix end of range for access_ok (diff)
downloadlinux-dev-a72b69dc083a931422cc8a5e33841aff7d5312f2.tar.xz
linux-dev-a72b69dc083a931422cc8a5e33841aff7d5312f2.zip
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions