From: Paolo Bonzini Date: Thu, 12 Jul 2012 13:02:29 +0000 (+0200) Subject: megasas: fix misuse of scsi_req_abort X-Git-Tag: v1.2.0-rc0~114^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2b06058f7a0812729b95bcd4600238165323220;p=thirdparty%2Fqemu.git megasas: fix misuse of scsi_req_abort scsi_req_abort is for terminating a command with a non-zero status. The ABORT task management function is invoked by scsi_req_cancel. In fact, ABORTED_COMMAND is a sense key, not a SAM status code. Signed-off-by: Paolo Bonzini --- diff --git a/hw/megasas.c b/hw/megasas.c index c389ddfb6a8..9a0eab1c98c 100644 --- a/hw/megasas.c +++ b/hw/megasas.c @@ -544,7 +544,7 @@ static void megasas_reset_frames(MegasasState *s) static void megasas_abort_command(MegasasCmd *cmd) { if (cmd->req) { - scsi_req_abort(cmd->req, ABORTED_COMMAND); + scsi_req_cancel(cmd->req); cmd->req = NULL; } }