Re: [PATCH] esp: process the result of scsi_device_find()

2023-12-27 Thread Mark Cave-Ayland
On 26/12/2023 12:08, Philippe Mathieu-Daudé wrote: Cc'ing Mark for the logical change (should we rather assert?). On 18/12/23 16:02, Alexandra Diupina wrote: Add a 'current_lun' check for a null value to avoid null pointer dereferencing Found by Linux Verification Center (linuxtesting.org) wi

Re: [PATCH] esp: process the result of scsi_device_find()

2023-12-26 Thread Philippe Mathieu-Daudé
Cc'ing Mark for the logical change (should we rather assert?). On 18/12/23 16:02, Alexandra Diupina wrote: Add a 'current_lun' check for a null value to avoid null pointer dereferencing Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 4eb8606560 (esp: store lun coming f

[PATCH] esp: process the result of scsi_device_find()

2023-12-18 Thread Alexandra Diupina
Add a 'current_lun' check for a null value to avoid null pointer dereferencing 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 --- hw/scsi/esp.c | 5 + 1 file changed, 5 i