Skip to contentSkip to conversation

lpfc 8.3.40: Fix starting reference tag when calculating BG error

PATCH New James Smart 1 participant 1 message May 31, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/17 lpfc 8.3.40: Fix starting reference tag when calculating BG error

Fix starting reference tag when calculating BG error

---

 lpfc_scsi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_scsi.c +1 -1
diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -3088,9 +3088,9 @@ lpfc_calc_bg_err(struct lpfc_hba *phba,
 			chk_guard = 1;
 		guard_type = scsi_host_get_guard(cmd->device->host);
 
+		src = (struct scsi_dif_tuple *)sg_virt(sgpe);
 		start_ref_tag = (uint32_t)scsi_get_lba(cmd); /* Truncate LBA */
 		start_app_tag = src->app_tag;
-		src = (struct scsi_dif_tuple *)sg_virt(sgpe);
 		len = sgpe->length;
 		while (src && protsegcnt) {
 			while (len) {