Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 08707b5c authored by Zheng Wang's avatar Zheng Wang Committed by Michael S. Tsirkin
Browse files

scsi: virtio_scsi: fix handling of kmalloc failure


There is no check about the return value of kmalloc in
virtscsi_rescan_hotunplug. Add the check to avoid use
of null pointer 'inq_result' in case of the failure
of kmalloc.

Signed-off-by: default avatarZheng Wang <zyytlz.wz@163.com>
Message-Id: <20230202064124.22277-1-zyytlz.wz@163.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 699209fc
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment