aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorLi Huafei <[email protected]>2024-10-31 11:27:55 +0000
committerHerbert Xu <[email protected]>2024-11-10 03:50:54 +0000
commita10549fcce2913be7dc581562ffd8ea35653853e (patch)
tree2ec415058a2e32c8a686ee7e46c9c6cb55ceb638 /net/unix/af_unix.c
parentcrypto: qat - Fix missing destroy_workqueue in adf_init_aer() (diff)
downloadkernel-a10549fcce2913be7dc581562ffd8ea35653853e.tar.gz
kernel-a10549fcce2913be7dc581562ffd8ea35653853e.zip
crypto: inside-secure - Fix the return value of safexcel_xcbcmac_cra_init()
The commit 320406cb60b6 ("crypto: inside-secure - Replace generic aes with libaes") replaced crypto_alloc_cipher() with kmalloc(), but did not modify the handling of the return value. When kmalloc() returns NULL, PTR_ERR_OR_ZERO(NULL) returns 0, but in fact, the memory allocation has failed, and -ENOMEM should be returned. Fixes: 320406cb60b6 ("crypto: inside-secure - Replace generic aes with libaes") Signed-off-by: Li Huafei <[email protected]> Acked-by: Antoine Tenart <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions