Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2428427e49beddd8ebc53054219fac2cc9ffee23
Commit:     2428427e49beddd8ebc53054219fac2cc9ffee23
Parent:     ebb3e820b83e426ee331bae6d8fb0e54f472a25d
Author:     Boaz Harrosh <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 09:21:19 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 09:21:19 2007 +0200

    [SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg
    
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
---
 drivers/scsi/ide-scsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index d297f64..bd74f6c 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to