]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: octeontx2 - Replace deprecated strcpy in cpt_ucode_load_fw
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 1 Nov 2025 14:04:42 +0000 (15:04 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Nov 2025 06:31:08 +0000 (14:31 +0800)
commitd633730bb3873578a00fde4b97f9ac62a1be8d34
tree77109bbb8fe0e8c3a22b091d4d532873f249bbaa
parentb6410c1e50164da0542b671fc14caf4cff1c4819
crypto: octeontx2 - Replace deprecated strcpy in cpt_ucode_load_fw

strcpy() is deprecated; use the safer strscpy() instead.

The destination buffer is only zero-initialized for the first iteration
and since strscpy() guarantees its NUL termination anyway, remove
zero-initializing 'eng_type'.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c