Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2428427e authored by Boaz Harrosh's avatar Boaz Harrosh Committed by Jens Axboe
Browse files

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

parent ebb3e820
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;