scsi: lpfc: Correct error in setting OS Driver Version with FW
authorJames Smart <james.smart@broadcom.com>
Mon, 19 Dec 2016 23:07:21 +0000 (15:07 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 05:21:12 +0000 (00:21 -0500)
Correct error in setting OS Driver Version with FW.  Prior length was
too short.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@Suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c

index 4faa7672fc1d80add7e603e7bda066e5b98fd34b..f895cb9c89a3a788c00b8ecefb15e9edffd2d63a 100644 (file)
@@ -6306,7 +6306,8 @@ lpfc_set_host_data(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox)
                         LPFC_SLI4_MBX_EMBED);
 
        mbox->u.mqe.un.set_host_data.param_id = LPFC_SET_HOST_OS_DRIVER_VERSION;
-       mbox->u.mqe.un.set_host_data.param_len = 8;
+       mbox->u.mqe.un.set_host_data.param_len =
+                                       LPFC_HOST_OS_DRIVER_VERSION_SIZE;
        snprintf(mbox->u.mqe.un.set_host_data.data,
                 LPFC_HOST_OS_DRIVER_VERSION_SIZE,
                 "Linux %s v"LPFC_DRIVER_VERSION,