]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hifn_795x - Replace snprintf("%s") with strscpy
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 24 Mar 2026 11:27:05 +0000 (12:27 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Apr 2026 00:56:11 +0000 (08:56 +0800)
commitd7f3162ff802b5c39e3c449be8bccd297a4d7267
tree7290e16df25c56468120f938e8a6410a658cfdf3
parentf216e0f2d1787e662bb6662c9c522185aa3b855a
crypto: hifn_795x - Replace snprintf("%s") with strscpy

Replace snprintf("%s", ...) with the faster and more direct strscpy().
Check if the return value is less than 0 to detect string truncation.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hifn_795x.c