summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2008-02-23 20:55:12 +0000
committerChris Wright <chrisw@sous-sol.org>2008-03-24 11:47:14 -0700
commitf59549d67e4d2f236a87f7d9d2e48dfe84d70f6b (patch)
tree05222c6142d0dc8beec11b7aa09c1d131e43e4ff /drivers
parent90fbe8b1fa081a99616ccd7760f5877fcafa35ef (diff)
downloadkernel-common-f59549d67e4d2f236a87f7d9d2e48dfe84d70f6b.tar.gz
kernel-common-f59549d67e4d2f236a87f7d9d2e48dfe84d70f6b.tar.bz2
kernel-common-f59549d67e4d2f236a87f7d9d2e48dfe84d70f6b.zip
SCSI ips: fix data buffer accessors conversion bug
commit: 2b28a4721e068ac89bd5435472723a1bc44442fe This fixes a bug that can't handle a passthru command with more than two sg entries. Big thanks to Tim Pepper for debugging the problem. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Mark Salyzyn <Mark_Salyzyn@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/ips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index f8aa29077179..f4e9c8d1255d 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -1580,7 +1580,7 @@ ips_make_passthru(ips_ha_t *ha, struct scsi_cmnd *SC, ips_scb_t *scb, int intr)
METHOD_TRACE("ips_make_passthru", 1);
scsi_for_each_sg(SC, sg, scsi_sg_count(SC), i)
- length += sg[i].length;
+ length += sg->length;
if (length < sizeof (ips_passthru_t)) {
/* wrong size */