Searched hist:60720694 (Results 1 – 1 of 1) sorted by relevance
/qemu/hw/scsi/ |
H A D | esp.c | diff 60720694 Wed Apr 07 19:58:00 GMT 2021 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> esp: ensure that do_cmd is set to zero before submitting an ESP select command
When a CDB has been received and is about to be submitted to the SCSI layer via one of the ESP select commands, ensure that do_cmd is set to zero before executing the command.
Otherwise a guest executing 2 valid CDBs in quick sequence can invoke the SCSI .transfer_data callback again before do_cmd is set to zero by the callback function triggering an assert at the start of esp_transfer_data().
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210407195801.685-12-mark.cave-ayland@ilande.co.uk>
|