summaryrefslogtreecommitdiff
path: root/include/scsi/libiscsi_tcp.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2017-11-09 16:29:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-13 12:01:04 +0300
commit14c2cd93e276832e92c1a811a1552bb4036108af (patch)
tree17548afb3f3c3d8746688f4c73751cec1031b9fc /include/scsi/libiscsi_tcp.h
parent1f33700bdf421490aef65bb794dbd9d9837f7ea0 (diff)
downloadlinux-14c2cd93e276832e92c1a811a1552bb4036108af.tar.xz
vhost/vsock: fix uninitialized vhost_vsock->guest_cid
commit a72b69dc083a931422cc8a5e33841aff7d5312f2 upstream. 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> Cc: Daniel Verkamp <dverkamp@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/scsi/libiscsi_tcp.h')
0 files changed, 0 insertions, 0 deletions