From: James Smart Date: Tue, 12 Mar 2019 23:30:22 +0000 (-0700) Subject: scsi: lpfc: Fix HDMI2 registration string for symbolic name X-Git-Tag: v5.4-rc1~699^2~278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4f87861d9d8029536b8edecc8c28dc3e0c21fc8;p=platform%2Fkernel%2Flinux-rpi.git scsi: lpfc: Fix HDMI2 registration string for symbolic name The switch is rejecting FDMI2 registration for symbolic name. There is a "\n" in the name string, which the switch dislikes thus rejects the registration. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index 48a3633..c58cff6 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c @@ -1463,7 +1463,7 @@ lpfc_vport_symbolic_node_name(struct lpfc_vport *vport, char *symbol, return n; /* Note :- OS name is "Linux" */ - n += snprintf(symbol + n, size - n, " OS:%s\n", + n += snprintf(symbol + n, size - n, " OS:%s", init_utsname()->sysname); return n; }