linux/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
..
Kconfig
Makefile
drv_fcoe_fw_funcs.c
drv_fcoe_fw_funcs.h
drv_scsi_fw_funcs.c
drv_scsi_fw_funcs.h
qedf.h
qedf_attr.c
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
qedf_fip.c
qedf_hsi.h
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