提交 9fac25bf 编写于 作者: P Paolo Bonzini

scsi: fix wrong return for target INQUIRY

Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 5db1764c
......@@ -380,7 +380,7 @@ static bool scsi_target_emulate_inquiry(SCSITargetReq *r)
/* PAGE CODE == 0 */
if (r->req.cmd.xfer < 5) {
return -1;
return false;
}
r->len = MIN(r->req.cmd.xfer, 36);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册