]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: caam - uninstantiate RNG state handle 0 if instantiated by caam driver
authorAlex Porosanu <alexandru.porosanu@freescale.com>
Mon, 9 Sep 2013 15:56:32 +0000 (18:56 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Sep 2013 11:43:55 +0000 (21:43 +1000)
commitb1f996e0b3b00c98f0ac8ffef1a6572cbc735bbc
tree8f6ecb80263398bef489cc6f7a555230fbcc0531
parent04cddbfe6b5f334aa337a1a9797eb8914822f2f8
crypto: caam - uninstantiate RNG state handle 0 if instantiated by caam driver

If the caam driver module instantiates the RNG state handle 0, then
upon the removal of the module, the RNG state handle is left
initialized. This patch takes care of reverting the state of the
handle back to its previous uninstantatied state.

Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/intern.h