linux_dsm_epyc7002/drivers/scsi/qedf
Arnd Bergmann a8db6140d7 scsi: qedf: use correct strncpy() size
gcc-8 warns during link-time optimization that the strncpy() call passes
the size of the source buffer rather than the destination:

drivers/scsi/qedf/qedf_dbg.c: In function 'qedf_uevent_emit':
include/linux/string.h:253: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

This changes it to strscpy() with the correct length, guaranteeing a
properly nul-terminated string of the right size.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-02-13 21:37:02 -05:00
..
drv_fcoe_fw_funcs.c qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
drv_fcoe_fw_funcs.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
drv_scsi_fw_funcs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_scsi_fw_funcs.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
Kconfig
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedf_attr.c scsi: qedf: Add fka_period SCSI host attribute to show fip keep alive period. 2017-06-12 20:48:06 -04:00
qedf_dbg.c scsi: qedf: use correct strncpy() size 2018-02-13 21:37:02 -05:00
qedf_dbg.h scsi: qedf: fix LTO-enabled build 2018-02-13 21:37:01 -05:00
qedf_debugfs.c scsi: qedf: fix LTO-enabled build 2018-02-13 21:37:01 -05:00
qedf_els.c qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
qedf_fip.c scsi: qedf: Corrent VLAN tag insertion in fallback VLAN case. 2017-08-24 22:29:03 -04:00
qedf_hsi.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qedf_io.c scsi: qedf: remove redundant initialization of 'fcport' 2018-02-13 21:37:00 -05:00
qedf_main.c scsi: qedf: fix LTO-enabled build 2018-02-13 21:37:01 -05:00
qedf_version.h qed*: Advance drivers' version to 8.33.0.20 2018-01-02 13:59:16 -05:00
qedf.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00