]> 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)
commit855319af302274e03cc3c83933305ae09aa9af82
tree919c6eea612812c2a84e9ece67cf9ecc21d12f96
parentb64e7d52fd320c15421115be5e77d78105961b88
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