diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-12 15:02:29 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-26 17:44:07 +0200 |
commit | e2b06058f7a0812729b95bcd4600238165323220 (patch) | |
tree | 0c7ebe64f8ddb9b7fb2cc488f1b9382394c2ea69 /hw/megasas.c | |
parent | 10d6530c64b4b4935fea3a4317e9c46d92a5e6db (diff) |
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/megasas.c')
-rw-r--r-- | hw/megasas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/megasas.c b/hw/megasas.c index c389ddfb6a..9a0eab1c98 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; } } |