crypto: caam - Dynamic memory allocation for caam_rng_ctx object
authorNitesh Lal <NiteshNarayanLal@freescale.com>
Fri, 7 Mar 2014 10:36:08 +0000 (16:06 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Mar 2014 12:17:12 +0000 (20:17 +0800)
commit6e4e603a9a99c6e27a74c1a813a7c751d85a721d
tree2ff725ece6047f8a46f230b2d5b79f3707454777
parent4f7f1d7cff8f2c170ce0319eb4c01a82c328d34f
crypto: caam - Dynamic memory allocation for caam_rng_ctx object

This patch allocates memory from DMAable region to the caam_rng_ctx object,
earlier it had been statically allocated which resulted in errorneous
behaviour on inserting the caamrng module at the runtime.

Signed-off-by: Nitesh Lal <NiteshNarayanLal@freescale.com>
Acked-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamrng.c