aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-07-12 15:02:29 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-07-26 17:44:07 +0200
commite2b06058f7a0812729b95bcd4600238165323220 (patch)
tree0c7ebe64f8ddb9b7fb2cc488f1b9382394c2ea69 /hw
parent10d6530c64b4b4935fea3a4317e9c46d92a5e6db (diff)
downloadqemu-e2b06058f7a0812729b95bcd4600238165323220.zip
qemu-e2b06058f7a0812729b95bcd4600238165323220.tar.gz
qemu-e2b06058f7a0812729b95bcd4600238165323220.tar.bz2
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 <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/megasas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/megasas.c b/hw/megasas.c
index c389ddf..9a0eab1 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;
}
}