Signed-off-by: Stefan Richter <[EMAIL PROTECTED]>
---
 drivers/ieee1394/sbp2.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux/drivers/ieee1394/sbp2.c
===================================================================
--- linux.orig/drivers/ieee1394/sbp2.c
+++ linux/drivers/ieee1394/sbp2.c
@@ -326,6 +326,7 @@ static struct scsi_host_template sbp2_sh
        .this_id                 = -1,
        .sg_tablesize            = SG_ALL,
        .use_clustering          = ENABLE_CLUSTERING,
+       .use_sg_chaining         = ENABLE_SG_CHAINING,
        .cmd_per_lun             = SBP2_MAX_CMDS,
        .can_queue               = SBP2_MAX_CMDS,
        .sdev_attrs              = sbp2_sysfs_sdev_attrs,
@@ -1489,7 +1490,7 @@ static void sbp2_prep_command_orb_sg(str
 
                /* loop through and fill out our SBP-2 page tables
                 * (and split up anything too large) */
-               for (i = 0, sg_count = 0 ; i < count; i++, sgpnt++) {
+               for (i = 0, sg_count = 0; i < count; i++, sgpnt = 
sg_next(sgpnt)) {
                        sg_len = sg_dma_len(sgpnt);
                        sg_addr = sg_dma_address(sgpnt);
                        while (sg_len) {

-- 
Stefan Richter
-=====-=-=== =-== --=--
http://arcgraph.de/sr/

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to