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
..
2023-10-20 08:51:41 +02:00
2023-12-20 09:40:16 -05:00
2023-12-04 08:03:42 -05:00
2023-12-02 15:56:49 -05:00
2023-12-20 10:29:23 +01:00
2023-09-21 11:31:16 +03:00
2023-11-07 09:41:52 +08:00
2023-12-20 10:29:23 +01:00
2023-12-20 09:40:16 -05:00
2023-12-20 09:40:16 -05:00
2023-11-10 18:19:13 +01:00
2023-12-20 09:40:16 -05:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00