From: James Smart Date: Sun, 5 Aug 2007 10:08:38 +0000 (-0400) Subject: [SCSI] lpfc : scsi command accessor fix for 8.2.2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66dbfbe6fde35c881deda5cebb6ecaa0dcc1c975;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [SCSI] lpfc : scsi command accessor fix for 8.2.2 It was pointed out by Boaz Harrosh that our 8.2.2 lpfc patches revert a change to using SCSI command accessor functions. This patch, to be applied on top of the 8.2.2. patches, updates the driver for the accessor functions. Signed-off-by: James Smart Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 94458d7a8f7..17d7dc05149 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -499,7 +499,7 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd, "0717 FCP command x%x residual " "underrun converted to error " "Data: x%x x%x x%x\n", - cmnd->cmnd[0], cmnd->request_bufflen, + cmnd->cmnd[0], scsi_bufflen(cmnd), scsi_get_resid(cmnd), cmnd->underflow); host_status = DID_ERROR; }