提交 2428427e 编写于 作者: B Boaz Harrosh 提交者: Jens Axboe

[SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg

Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 ebb3e820
......@@ -807,7 +807,7 @@ static int idescsi_queue (struct scsi_cmnd *cmd,
memcpy (pc->c, cmd->cmnd, cmd->cmd_len);
pc->buffer = NULL;
pc->sg = scsi_sglist(cmd);
pc->last_sg = sg_last(pc->sg, cmd->use_sg);
pc->last_sg = sg_last(pc->sg, scsi_sg_count(cmd));
pc->b_count = 0;
pc->request_transfer = pc->buffer_size = scsi_bufflen(cmd);
pc->scsi_cmd = cmd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册