]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix: Rework setting of fdmi symbolic node name registration
authorJames Smart <jsmart2021@gmail.com>
Wed, 18 Dec 2019 23:58:00 +0000 (15:58 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 21 Dec 2019 18:42:41 +0000 (13:42 -0500)
commitf96cefe3a7e622ef3b4fdbdd6c82df9e63077afb
tree919c6eea612812c2a84e9ece67cf9ecc21d12f96
parent959e548ace27f390a5e198406b054fdc51e06d44
scsi: lpfc: Fix: Rework setting of fdmi symbolic node name registration

This patch reworks the fdmi symbolic node name data for the following two
issues:

 - Correcting extraneous periods following the DV and HN fdmi data fields.

 - Avoiding buffer overflow issues when formatting the data.

The fix to the fist issue is to just remove the characters.

The fix to the second issue has all data being staged in temporary storage
before being moved to the real buffer.

Link: https://lore.kernel.org/r/20191218235808.31922-3-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_ct.c