diff options
author | Justin Stitt <justinstitt@google.com> | 2024-03-06 00:34:37 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-03-10 23:37:43 +0100 |
commit | b7e9712a02e869d2c15a3a2284b078771fd484d7 (patch) | |
tree | fcb530cce53f2e74b526894f26c86ce14918b352 /drivers/net/ethernet/qlogic/qed | |
parent | scsi: mpi3mr: Replace deprecated strncpy() with assignments (diff) | |
download | linux-b7e9712a02e869d2c15a3a2284b078771fd484d7.tar.xz linux-b7e9712a02e869d2c15a3a2284b078771fd484d7.zip |
scsi: mpt3sas: Replace deprecated strncpy() with strscpy()
The replacement in mpt3sas_base.c is a trivial one because desc is already
zero-initialized meaning there is no functional change here.
For mpt3sas_transport.c, we know edev is zero-initialized as well while
manufacture_reply comes from dma_alloc_coherent(). No functional change
here either.
For all cases, use the more idiomatic strscpy() usage of: strscpy(dest,
src, sizeof(dest))
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20240305-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v3-2-5b78a13ff984@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed')
0 files changed, 0 insertions, 0 deletions