summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorChristophe Jaillet2017-04-13 20:25:15 +0200
committerHerbert Xu2017-04-21 14:30:47 +0200
commitec1bca941a36961933484be0fce3e71981815bad (patch)
treeb47a106d06d61aa30ed6aa156707a37e31741cec /drivers/firmware
parentpadata: get_next is never NULL (diff)
downloadkernel-qcow2-linux-ec1bca941a36961933484be0fce3e71981815bad.tar.gz
kernel-qcow2-linux-ec1bca941a36961933484be0fce3e71981815bad.tar.xz
kernel-qcow2-linux-ec1bca941a36961933484be0fce3e71981815bad.zip
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>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions