projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb3e82
)
[SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg
author
Boaz Harrosh
<bharrosh@panasas.com>
Wed, 17 Oct 2007 07:21:19 +0000
(09:21 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 17 Oct 2007 07:21:19 +0000
(09:21 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/scsi/ide-scsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ide-scsi.c
b/drivers/scsi/ide-scsi.c
index d297f64cd4325f3d4e0d2f1fff74a9f3db3d46cc..bd74f6c44b6b80bf3675b7f4cd1d2ad4e4193bce 100644
(file)
--- 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;