[SCSI] qla2xxx: Fix to include FCE data as part of dump.
authorGiridhar Malavali <giridhar.malavali@qlogic.com>
Fri, 18 Nov 2011 17:03:11 +0000 (09:03 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 15 Dec 2011 06:55:03 +0000 (10:55 +0400)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_dbg.c

index 58e0bfbfcd332767b05060c4db9ca8488d04356a..dc454628f0a1e289aa1e0e0f59ee5c30b2c96ce4 100644 (file)
@@ -369,7 +369,7 @@ qla25xx_copy_fce(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain)
 
        memcpy(iter_reg, ha->fce, ntohl(fcec->size));
 
-       return iter_reg;
+       return (char *)iter_reg + ntohl(fcec->size);
 }
 
 static inline void *