summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2026-09-28 02:00:30 -0700
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-10-05 22:06:09 -0400
commit6697e9f202c1cfca257f3cc173551547181c3d4b (patch)
treebab82372e8f59fae20e97cda2057c8c5df98e8a2 /include/uapi/linux
parent0a5b53c1e7276ffacf5153d06d442c4d7ab0c41d (diff)
downloadlinux-next-6697e9f202c1cfca257f3cc173551547181c3d4b.tar.gz
linux-next-6697e9f202c1cfca257f3cc173551547181c3d4b.zip
scsi: bfa: Use snprintf() in bfa_fcs_fabric_psymb_init()
Similar to bfa_fcs_fabric_nsymb_init(), bfa_fcs_fabric_psymb_init() builds the port symbolic name using strscpy() and a chain of seven or eight strlcat() calls. In preparation for removing the deprecated strlcat() API[1], replace the chained strscpy() and strlcat() calls with a single snprintf() call. An empty host_os_patch naturally contributes no characters through %s, allowing both cases to be handled by the same snprintf() call. Since snprintf() also NUL-terminates the destination, the explicit final NUL assignment can be dropped. Link: https://github.com/KSPP/linux/issues/370 [1] Cc: codemender-patching+linux@google.com Assisted-by: LLM Signed-off-by: Bill Wendling <morbo@google.com> Signed-off-by: Mariia Nikitash <nikitash.mariiaw@gmail.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20260928090031.712418-3-nikitash.mariiaw@gmail.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions