linux-hardened/drivers/crypto/chelsio
Christophe Jaillet ec1bca941a crypto: chcr - Fix error handling related to 'chcr_alloc_shash'
Up to now, 'crypto_alloc_shash()' may return a valid pointer, an error
pointer or NULL (in case of invalid parameter)
Update it to always return an error pointer in case of error. It now
returns ERR_PTR(-EINVAL) instead of NULL in case of invalid parameter.

This simplifies error handling.

Also fix a crash in 'chcr_authenc_setkey()' if 'chcr_alloc_shash()'
returns an error pointer and the "goto out" path is taken.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-04-21 20:30:47 +08:00
..
chcr_algo.c crypto: chcr - Fix error handling related to 'chcr_alloc_shash' 2017-04-21 20:30:47 +08:00
chcr_algo.h crypto: chcr - Add fallback for AEAD algos 2017-04-21 20:30:35 +08:00
chcr_core.c crypto: chcr - Fix wrong typecasting 2017-02-03 18:16:16 +08:00
chcr_core.h crypto: chcr - Fix txq ids. 2017-04-21 20:30:34 +08:00
chcr_crypto.h crypto: chcr - Add fallback for AEAD algos 2017-04-21 20:30:35 +08:00
Kconfig crypto: chcr - Add AEAD algos. 2016-11-30 20:01:51 +08:00
Makefile