]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] lpfc: add missed data buffer accessor
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 3 Jul 2007 15:12:35 +0000 (18:12 +0300)
committerJames Bottomley <jejb@mulgrave.localdomain>
Sat, 14 Jul 2007 22:11:16 +0000 (17:11 -0500)
This is an addendum to:

 commit a0b4f78f9a4c869e9b29f254054ad7441cb40bbf
 Author: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
    [SCSI] lpfc: convert to use the data buffer accessors

One place was missed in the merge

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/lpfc/lpfc_scsi.c

index 5d2e3de7de96601769281ef90220722b29079da0..3d35eae01475406b285b88ee4f4dca143cde0792 100644 (file)
@@ -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;
                }