]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.9/scsi-lpfc-fix-fdmi-manufacturer-attribute-value.patch
Linux 4.14.123
[thirdparty/kernel/stable-queue.git] / queue-4.9 / scsi-lpfc-fix-fdmi-manufacturer-attribute-value.patch
1 From 4fb00c6f3a732e384a4680b85299f781fc5646b3 Mon Sep 17 00:00:00 2001
2 From: James Smart <jsmart2021@gmail.com>
3 Date: Tue, 12 Mar 2019 16:30:20 -0700
4 Subject: scsi: lpfc: Fix FDMI manufacturer attribute value
5
6 [ Upstream commit d67f935b79a76ac9d86dde1a27bdd413feb5d987 ]
7
8 The FDMI manufacturer value being reported on Linux is inconsistent with
9 other OS's.
10
11 Set the value to "Emulex Corporation" for consistency.
12
13 Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
14 Signed-off-by: James Smart <jsmart2021@gmail.com>
15 Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
16 Signed-off-by: Sasha Levin <sashal@kernel.org>
17 ---
18 drivers/scsi/lpfc/lpfc_ct.c | 3 +++
19 1 file changed, 3 insertions(+)
20
21 diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c
22 index 4ac03b16d17f5..52afbcff362f9 100644
23 --- a/drivers/scsi/lpfc/lpfc_ct.c
24 +++ b/drivers/scsi/lpfc/lpfc_ct.c
25 @@ -1561,6 +1561,9 @@ lpfc_fdmi_hba_attr_manufacturer(struct lpfc_vport *vport,
26 ae = (struct lpfc_fdmi_attr_entry *)&ad->AttrValue;
27 memset(ae, 0, 256);
28
29 + /* This string MUST be consistent with other FC platforms
30 + * supported by Broadcom.
31 + */
32 strncpy(ae->un.AttrString,
33 "Emulex Corporation",
34 sizeof(ae->un.AttrString));
35 --
36 2.20.1
37