From: Boaz Harrosh Date: Wed, 17 Oct 2007 07:21:19 +0000 (+0200) Subject: [SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg X-Git-Tag: v2.6.24-rc1~490^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2428427e49beddd8ebc53054219fac2cc9ffee23;p=linux-2.6-omap-h63xx.git [SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg Signed-off-by: Jens Axboe --- diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index d297f64cd43..bd74f6c44b6 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c @@ -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;