diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-20 12:00:30 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-05-29 14:05:29 +0800 |
| commit | a43b47340b6bf809f282db8639fc4deea0180208 (patch) | |
| tree | be967bca2beccd5717e769f8d1005309ba23bca0 /include/linux | |
| parent | 59f61b242400939084fe644e4e0cb7f141279ad7 (diff) | |
crypto: octeontx - use strscpy_pad in ucode_load_store
Instead of zero-initializing the temporary buffer and then copying into
it with strscpy(), use strscpy_pad() to copy the string and zero-pad any
trailing bytes. Drop the explicit size argument to further simplify the
code since strscpy_pad() can determine it automatically when the
destination buffer has a fixed length.
Also use strscpy_pad() to check for string truncation instead of the
hard-coded OTX_CPT_UCODE_NAME_LENGTH.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
