crypto: caam - reinitialize keys_fit_inline for decrypt and givencrypt
authorVakul Garg <vakul@freescale.com>
Sat, 10 May 2014 01:34:40 +0000 (20:34 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 May 2014 11:43:46 +0000 (19:43 +0800)
commit80cd88f2f54a01c8cdb459a3ee0569b25bb3d26a
tree3a15d14a2468fc229cc2fa21aa6f0ccb5136da5a
parent56b284461923e83daa0b622dcf0e34e264b733ef
crypto: caam - reinitialize keys_fit_inline for decrypt and givencrypt

Re-initialize keys_fit_inline to avoid using its stale encrypt() shared
descriptor value prior to building descriptors for the decrypt() and
givencrypt() cases.

Signed-off-by: Vakul Garg <vakul@freescale.com>
[reworded commit text, enhanced code readability]
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c