linux/drivers/crypto/caam
Catalin Vasile e930c765ca crypto: caam - fix caam_jr_alloc() ret code
caam_jr_alloc() used to return NULL if a JR device could not be
allocated for a session. In turn, every user of this function used
IS_ERR() function to verify if anything went wrong, which does NOT look
for NULL values. This made the kernel crash if the sanity check failed,
because the driver continued to think it had allocated a valid JR dev
instance to the session and at some point it tries to do a caam_jr_free()
on a NULL JR dev pointer.
This patch is a fix for this issue.

Cc: <stable@vger.kernel.org>
Signed-off-by: Catalin Vasile <cata.vasile@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-05-10 17:49:21 +08:00
..
caamalg.c crypto: caam - add support for acipher xts(aes) 2015-10-08 21:42:20 +08:00
caamhash.c crypto: caam - pass the correct buffer length 2015-12-04 22:29:56 +08:00
caamrng.c crypto: caam - Use the preferred style for memory allocations 2015-08-24 22:07:42 +08:00
compat.h crypto: caam - Enable and disable clocks on Freescale i.MX platforms 2015-08-10 23:18:56 +08:00
ctrl.c crypto: caam - enable LARGE_BURST for enhancing DMA transactions size 2016-01-25 22:39:03 +08:00
ctrl.h
desc_constr.h crypto: caam - fix warning in APPEND_MATH_IMM_u64 2015-07-20 15:53:43 +08:00
desc.h crypto: caam - Remove unused JUMP_TYPE_MASK definition 2015-09-21 22:00:40 +08:00
error.c
error.h
intern.h crypto: caam - Enable and disable clocks on Freescale i.MX platforms 2015-08-10 23:18:56 +08:00
jr.c crypto: caam - fix caam_jr_alloc() ret code 2016-05-10 17:49:21 +08:00
jr.h
Kconfig crypto: caam - add support for LS1021A 2015-08-18 10:30:39 +08:00
key_gen.c
key_gen.h
Makefile
pdb.h
regs.h crypto: caam - enable LARGE_BURST for enhancing DMA transactions size 2016-01-25 22:39:03 +08:00
sg_sw_sec4.h crypto: caam - dma_map_sg can handle chained SG 2015-10-01 21:56:56 +08:00