linux/drivers/crypto/marvell
Thorsten Blum 361fa7f813 crypto: octeontx2 - Call strscpy() with correct size argument
In otx2_cpt_dl_custom_egrp_create(), strscpy() is called with the length
of the source string rather than the size of the destination buffer.

This is fine as long as the destination buffer is larger than the source
string, but we should still use the destination buffer size instead to
call strscpy() as intended. And since 'tmp_buf' is a fixed-size buffer,
we can safely omit the size argument and let strscpy() infer it using
sizeof().

Fixes: d9d7749773 ("crypto: octeontx2 - add apis for custom engine groups")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-08-22 17:28:44 +08:00
..
cesa crypto: marvell/cesa - Fix engine load inaccuracy 2025-06-13 17:26:16 +08:00
octeontx crypto: octeontx - Remove unused function otx_cpt_eng_grp_has_eng_type 2025-03-02 15:21:10 +08:00
octeontx2 crypto: octeontx2 - Call strscpy() with correct size argument 2025-08-22 17:28:44 +08:00
Kconfig crypto: lib/Kconfig - hide library options 2025-03-21 17:33:39 +08:00
Makefile