OrangePi_CM5/drivers/scsi/lpfc
Dan Carpenter fcb32eb3d0 scsi: lpfc: Terminate string in lpfc_debugfs_nvmeio_trc_write()
[ Upstream commit 9020be114a47bf7ff33e179b3bb0016b91a098e6 ]

The "mybuf" string comes from the user, so we need to ensure that it is NUL
terminated.

Link: https://lore.kernel.org/r/20211214070527.GA27934@kili
Fixes: bd2cdd5e40 ("scsi: lpfc: NVME Initiator: Add debugfs support")
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-05 12:40:30 +01:00
..
Makefile
…
lpfc.h
…
lpfc_attr.c
…
lpfc_attr.h
…
lpfc_bsg.c
…
lpfc_bsg.h
…
lpfc_compat.h
…
lpfc_crtn.h
…
lpfc_ct.c
…
lpfc_debugfs.c scsi: lpfc: Terminate string in lpfc_debugfs_nvmeio_trc_write() 2022-01-05 12:40:30 +01:00
lpfc_debugfs.h
…
lpfc_disc.h
…
lpfc_els.c
…
lpfc_hbadisc.c
…
lpfc_hw.h
…
lpfc_hw4.h
…
lpfc_ids.h
…
lpfc_init.c
…
lpfc_logmsg.h
…
lpfc_mbox.c
…
lpfc_mem.c
…
lpfc_nl.h
…
lpfc_nportdisc.c
…
lpfc_nvme.c
…
lpfc_nvme.h
…
lpfc_nvmet.c
…
lpfc_scsi.c
…
lpfc_scsi.h
…
lpfc_sli.c scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq() 2021-11-26 10:39:08 +01:00
lpfc_sli.h
…
lpfc_sli4.h
…
lpfc_version.h
…
lpfc_vport.c
…
lpfc_vport.h
…