linux_dsm_epyc7002/drivers/net/ethernet/qlogic/qed
Arnd Bergmann 11f711081a net: qed: use correct strncpy() size
passing the strlen() of the source string as the destination
length is pointless, and gcc-8 now warns about it:

drivers/net/ethernet/qlogic/qed/qed_debug.c: In function 'qed_grc_dump':
include/linux/string.h:253: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]

This changes qed_grc_dump_big_ram() to instead uses the length of
the destination buffer, and use strscpy() to guarantee nul-termination.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-02 19:42:29 -05:00
..
Makefile
qed_cxt.c
qed_cxt.h
qed_dcbx.c
qed_dcbx.h
qed_debug.c net: qed: use correct strncpy() size 2018-02-02 19:42:29 -05:00
qed_debug.h
qed_dev_api.h
qed_dev.c
qed_fcoe.c
qed_fcoe.h
qed_hsi.h
qed_hw.c
qed_hw.h
qed_init_fw_funcs.c
qed_init_ops.c
qed_init_ops.h
qed_int.c
qed_int.h
qed_iscsi.c
qed_iscsi.h
qed_iwarp.c
qed_iwarp.h
qed_l2.c
qed_l2.h
qed_ll2.c
qed_ll2.h
qed_main.c
qed_mcp.c
qed_mcp.h
qed_ooo.c
qed_ooo.h
qed_ptp.c
qed_rdma.c qed: code indent should use tabs where possible 2018-01-25 16:36:54 -05:00
qed_rdma.h
qed_reg_addr.h
qed_roce.c
qed_roce.h
qed_selftest.c
qed_selftest.h
qed_sp_commands.c
qed_sp.h
qed_spq.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-01-31 14:31:10 -08:00
qed_sriov.c
qed_sriov.h
qed_vf.c
qed_vf.h
qed.h