Skip to contentSkip to conversation

lpfc: convert to use the data buffer accessors - part 2

PATCH In review Boaz Harrosh 2 participants 2 messages Jul 3, 2007 – Jul 4, 2007

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

PATCH 1/1 lpfc: convert to use the data buffer accessors - part 2

This is an addendum to:
commit a0b4f78f9a4c869e9b29f254054ad7441cb40bbf
Author: FUJITA Tomonori <[email protected]>
[SCSI] lpfc: convert to use the data buffer accessors

One place was missed in the merge

---
 drivers/scsi/lpfc/lpfc_scsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/lpfc/lpfc_scsi.c +1 -1
index 5d2e3de..3d35eae 100644
@@ -506,7 +506,7 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
 					"underrun converted to error "
 					"Data: x%x x%x x%x\n",
 					phba->brd_no, vpi, cmnd->cmnd[0],
-					cmnd->request_bufflen,
+					scsi_bufflen(cmnd),
 					scsi_get_resid(cmnd), cmnd->underflow);
 			host_status = DID_ERROR;
 		}
Signature · 1 line
1.5.2.2.249.g45fd
#1 lore raw

ACK - missed in our merge. Thank You...

-- james s

Quoted 25 lines · Boaz Harrosh

This is an addendum to:
commit a0b4f78f9a4c869e9b29f254054ad7441cb40bbf
Author: FUJITA Tomonori <[email protected]>
[SCSI] lpfc: convert to use the data buffer accessors

One place was missed in the merge

---
 drivers/scsi/lpfc/lpfc_scsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/lpfc/lpfc_scsi.c +1 -1
index 5d2e3de..3d35eae 100644
@@ -506,7 +506,7 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
 					"underrun converted to error "
 					"Data: x%x x%x x%x\n",
 					phba->brd_no, vpi, cmnd->cmnd[0],
-					cmnd->request_bufflen,
+					scsi_bufflen(cmnd),
 					scsi_get_resid(cmnd), cmnd->underflow);
 			host_status = DID_ERROR;
 		}