From: Giridhar Malavali Date: Fri, 18 Nov 2011 17:03:11 +0000 (-0800) Subject: [SCSI] qla2xxx: Fix to include FCE data as part of dump. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cb0a67d6d0f5af55ab9673893cd8e8148025331;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [SCSI] qla2xxx: Fix to include FCE data as part of dump. Signed-off-by: Giridhar Malavali Signed-off-by: Chad Dupuis Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index 58e0bfbfcd33..dc454628f0a1 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c @@ -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 *