summary refs log tree commit diff stats
path: root/scripts/qapi/types.py
diff options
context:
space:
mode:
authorAlexandra Diupina <adiupina@astralinux.ru>2023-12-29 18:26:47 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-31 09:11:27 +0100
commitb22f83d8df481800ce43d1915a98c127a9de2258 (patch)
treea849624c823ce87bad6c7b6e808f73e08a79394b /scripts/qapi/types.py
parent219615740425d9683588207b40a365e6741691a6 (diff)
downloadfocaccia-qemu-b22f83d8df481800ce43d1915a98c127a9de2258.tar.gz
focaccia-qemu-b22f83d8df481800ce43d1915a98c127a9de2258.zip
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>
Diffstat (limited to 'scripts/qapi/types.py')
0 files changed, 0 insertions, 0 deletions