提交 e2b06058 编写于 作者: P Paolo Bonzini

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: NPaolo Bonzini <pbonzini@redhat.com>
上级 10d6530c
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册