android_kernel_xiaomi_sm8350/crypto
Akinobu Mita 9765d262b8 [CRYPTO] api: fix crypto_alloc_base() return value
This patch makes crypto_alloc_base() return proper return value.

- If kzalloc() failure happens within __crypto_alloc_tfm(),
  crypto_alloc_base() returns NULL. But crypto_alloc_base()
  is supposed to return error code as pointer. So this patch
  makes it return -ENOMEM in that case.

- crypto_alloc_base() is suppose to return -EINTR, if it is
  interrupted by signal. But it may not return -EINTR.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-11 22:29:51 +10:00
..
aes.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
algapi.c [CRYPTO] api: Add common instance initialisation code 2006-09-21 11:41:04 +10:00
anubis.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
api.c [CRYPTO] api: fix crypto_alloc_base() return value 2006-10-11 22:29:51 +10:00
arc4.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
blkcipher.c [CRYPTO] cipher: Added block cipher type 2006-09-21 11:41:52 +10:00
blowfish.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
cast5.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
cast6.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
cbc.c [CRYPTO] cipher: Added block ciphers for CBC/ECB 2006-09-21 11:44:08 +10:00
cipher.c [CRYPTO] api: Mark parts of cipher interface as deprecated 2006-09-21 11:46:16 +10:00
compress.c
crc32c.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
crypto_null.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
cryptomgr.c [CRYPTO] api: Added spawns 2006-09-21 11:39:29 +10:00
deflate.c
des.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
digest.c [CRYPTO] digest: Remove old HMAC implementation 2006-09-21 11:46:20 +10:00
ecb.c [CRYPTO] cipher: Added block ciphers for CBC/ECB 2006-09-21 11:44:08 +10:00
hash.c [CRYPTO] digest: Added user API for new hash type 2006-09-21 11:46:17 +10:00
hmac.c [CRYPTO] hmac: Fix error truncation by unlikely() 2006-09-23 16:48:46 -07:00
internal.h [CRYPTO] digest: Remove old HMAC implementation 2006-09-21 11:46:20 +10:00
Kconfig [CRYPTO] digest: Remove old HMAC implementation 2006-09-21 11:46:20 +10:00
khazad.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
Makefile [CRYPTO] digest: Added user API for new hash type 2006-09-21 11:46:17 +10:00
md4.c
md5.c
michael_mic.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
proc.c [CRYPTO] api: Added crypto_type support 2006-09-21 11:41:51 +10:00
scatterwalk.c [CRYPTO] scatterwalk: Prepare for block ciphers 2006-09-21 11:41:52 +10:00
scatterwalk.h [CRYPTO] digest: Added user API for new hash type 2006-09-21 11:46:17 +10:00
serpent.c [PATCH] serpent: fix endian warnings 2006-10-10 16:15:33 -07:00
sha1.c [CRYPTO] sha: Add module aliases for sha1 / sha256 2006-09-21 11:40:20 +10:00
sha256.c [CRYPTO] sha: Add module aliases for sha1 / sha256 2006-09-21 11:40:20 +10:00
sha512.c
tcrypt.c [CRYPTO] users: Use crypto_comp and crypto_has_* 2006-09-21 11:46:22 +10:00
tcrypt.h [CRYPTO] tcrypt: Use HMAC template and hash interface 2006-09-21 11:46:18 +10:00
tea.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
tgr192.c
twofish_common.c [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
twofish.c
wp512.c