2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 11:44:01 +08:00
linux-next/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 crypto: Added Chelsio Menu to the Kconfig file 2016-08-19 00:00:37 -07:00