Mark Cave-Ayland 607206948c 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>
2021-04-12 22:35:53 +01:00
..
2020-12-10 12:15:18 -05:00
2021-04-06 16:04:33 +01:00
2021-03-10 13:57:31 +00:00
2021-03-18 09:22:55 +00:00
2021-03-19 18:01:17 +00:00
2021-01-08 15:13:38 +00:00
2021-03-15 21:03:06 +01:00
2020-12-10 12:15:08 -05:00
2020-08-21 06:30:25 -04:00
2021-04-06 07:11:36 -04:00
2020-08-27 14:04:55 -04:00
2020-12-10 12:15:08 -05:00
2021-03-18 09:22:55 +00:00
2020-08-21 06:30:33 -04:00
2021-02-05 08:52:58 -05:00
2020-08-21 06:30:33 -04:00