qemu-e2k/hw/scsi
Alexandra Diupina b22f83d8df esp: check for NULL result from scsi_device_find()
Add a 'current_lun' check for a null value
to avoid null pointer dereferencing and
recover host if NULL return

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 4eb8606560 (esp: store lun coming from the MESSAGE OUT phase)
Signed-off-by: Alexandra Diupina <adiupina@astralinux.ru>
Message-ID: <20231229152647.19699-1-adiupina@astralinux.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-12-31 09:11:27 +01:00
..
emulation.c
esp-pci.c
esp.c esp: check for NULL result from scsi_device_find() 2023-12-31 09:11:27 +01:00
Kconfig
lsi53c895a.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
megasas.c
meson.build
mfi.h hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
mpi.h
mptconfig.c
mptendian.c
mptsas.c mptsas: avoid shadowed local variables 2023-09-25 18:25:03 +02:00
mptsas.h
scsi-bus.c
scsi-disk.c scsi-disk: ensure that FORMAT UNIT commands are terminated 2023-10-03 10:29:39 +02:00
scsi-generic.c
spapr_vscsi.c
srp.h
trace-events
trace.h
vhost-scsi-common.c vhost-user-scsi: support reconnect to backend 2023-10-22 05:18:17 -04:00
vhost-scsi.c cpr: relax vhost migration blockers 2023-11-01 16:13:59 +01:00
vhost-user-scsi.c vhost-user-scsi: free the inflight area when reset 2023-12-02 15:56:49 -05:00
viosrp.h
virtio-scsi-dataplane.c
virtio-scsi.c util/defer-call: move defer_call() to util/ 2023-10-31 15:41:42 +01:00
vmw_pvscsi.c
vmw_pvscsi.h