On 27/3/26 22:25, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> hw/scsi/ncr53c710.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/hw/scsi/ncr53c710.c b/hw/scsi/ncr53c710.c
> index f7b1e153960..25a1018ab11 100644
> --- a/hw/scsi/ncr53c710.c
> +++ b/hw/scsi/ncr53c710.c
> @@ -797,13 +797,10 @@ void ncr710_command_complete(SCSIRequest *req, size_t resid)
> s->status = req->status;
> s->command_complete = NCR710_CMD_COMPLETE;
>
> - if (p) {
> - p->pending = 0;
> - }
> -
> ncr710_set_phase(s, PHASE_ST);
>
> if (p) {
> + p->pending = 0;
> ncr710_request_orphan(s, p);
> }
>