summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorZheng Wang <zyytlz.wz@163.com>2023-02-02 09:41:24 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-02-21 03:26:59 +0300
commit08707b5c3344864d8948cb67706bad489b86773d (patch)
treed259e1bab5cdf5334475f08ab0ecd4d49682b558 /tools/perf/scripts/python/exported-sql-viewer.py
parent699209fcc55cb97ede9ee8c2160095e0f5dfc73c (diff)
downloadlinux-08707b5c3344864d8948cb67706bad489b86773d.tar.xz
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: Zheng Wang <zyytlz.wz@163.com> Message-Id: <20230202064124.22277-1-zyytlz.wz@163.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions