]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: x509 - Replace kmalloc() + NUL-termination with kzalloc()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 7 Apr 2025 08:22:47 +0000 (10:22 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:16:20 +0000 (15:16 +0800)
commitb93336cd767fc266dcccfa034a1fb32ae1a23564
treee09ffcc23c0e1f0bfd131654c3ec2dc5c1ae269b
parent5bb61dc76d11a661c323dee1505b408d18c31565
crypto: x509 - Replace kmalloc() + NUL-termination with kzalloc()

Use kzalloc() to zero out the one-element array instead of using
kmalloc() followed by a manual NUL-termination.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/x509_cert_parser.c