scsi-disk: pass SCSI status to scsi_handle_rw_error
commitf63c68bc0f514694a958b2e84a204b7792d28b17
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Feb 2021 17:59:36 +0000 (24 18:59 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Feb 2021 13:14:32 +0000 (25 14:14 +0100)
treeed76e3aa2cb69fc3bf0318c2a2be03f62ea34d43
parentd7a84021db8eeddcd5d24ab591a1434763caff6c
scsi-disk: pass SCSI status to scsi_handle_rw_error

Instead of fishing it from *r->status, just pass the SCSI status
as a positive value of the second parameter and an errno as a
negative value.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-disk.c