From: James Smart Date: Tue, 12 Mar 2019 23:30:20 +0000 (-0700) Subject: scsi: lpfc: Fix FDMI manufacturer attribute value X-Git-Tag: Ubuntu-4.15.0-61.68~1453 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e6b50a3cfee5de469bbbb002f2c65ccf43433e08;p=mirror_ubuntu-bionic-kernel.git scsi: lpfc: Fix FDMI manufacturer attribute value BugLink: https://bugs.launchpad.net/bugs/1838700 [ Upstream commit d67f935b79a76ac9d86dde1a27bdd413feb5d987 ] The FDMI manufacturer value being reported on Linux is inconsistent with other OS's. Set the value to "Emulex Corporation" for consistency. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Kamal Mostafa Signed-off-by: Khalid Elmously --- diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index b0afb2d32f5b..efd12ce7279e 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c @@ -1753,6 +1753,9 @@ lpfc_fdmi_hba_attr_manufacturer(struct lpfc_vport *vport, ae = (struct lpfc_fdmi_attr_entry *)&ad->AttrValue; memset(ae, 0, 256); + /* This string MUST be consistent with other FC platforms + * supported by Broadcom. + */ strncpy(ae->un.AttrString, "Emulex Corporation", sizeof(ae->un.AttrString));