[PATCH v2 0/7] scsi: replace deprecated strncpy

Justin Stitt
2024-02-28T22:59:10Z

This series contains multiple replacements of strncpy throughout the
scsi subsystem.

strncpy() is deprecated for use on NUL-terminated destination strings
[1] and as such we should prefer more robust and less ambiguous string
interfaces. The details of each replacement will be in their respective
patch.

---
Changes in v2:
- for (1/7): change strscpy to simple const char* assignments
- Link to v1: https://lore.kernel.org/r/20240223-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v1-0-9cd3882f0700@google.com

---
Justin Stitt (7):
scsi: mpi3mr: replace deprecated strncpy with assignments
scsi: mpt3sas: replace deprecated strncpy with strscpy
scsi: qedf: replace deprecated strncpy with strscpy
scsi: qla4xxx: replace deprecated strncpy with strscpy
scsi: devinfo: replace strncpy and manual pad
scsi: smartpqi: replace deprecated strncpy with strscpy
scsi: wd33c93: replace deprecated strncpy with strscpy

drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +-
drivers/scsi/mpi3mr/mpi3mr_fw.c | 10 +++++-----
drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +-
drivers/scsi/mpt3sas/mpt3sas_transport.c | 18 +++++++++---------
drivers/scsi/qedf/qedf_main.c | 2 +-
drivers/scsi/qla4xxx/ql4_mbx.c | 17 ++++++++++++-----
drivers/scsi/qla4xxx/ql4_os.c | 14 +++++++-------
drivers/scsi/scsi_devinfo.c | 18 ++++++++++--------
drivers/scsi/smartpqi/smartpqi_init.c | 5 ++---
drivers/scsi/wd33c93.c | 4 +---
10 files changed, 49 insertions(+), 43 deletions(-)
---
base-commit: 39133352cbed6626956d38ed72012f49b0421e7b
change-id: 20240222-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-1b130d51bdcc

Best regards,
--
Justin Stitt <justinstitt@google.com>