]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - fix RNG deinstantiation error checking
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 5 Apr 2017 08:41:03 +0000 (11:41 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Apr 2017 13:20:17 +0000 (21:20 +0800)
commitb5d03423bda6cf706ad086382c2dfc7de109f228
tree4a1bb2be9eb8bfb3b424f08cc2ca23dd4a1968f0
parent3ca593a13ceaa0b76250a4f6a220b5bd94ffaeda
crypto: caam - fix RNG deinstantiation error checking

RNG instantiation was previously fixed by
commit 3beb1213cb7ed ("crypto: caam - fix RNG init descriptor ret. code checking")
while deinstantiation was not addressed.

Since the descriptors used are similar, in the sense that they both end
with a JUMP HALT command, checking for errors should be similar too,
i.e. status code 7000_0000h should be considered successful.

Cc: <stable@vger.kernel.org> # 3.13+
Fixes: 6907699586f82 ("crypto: caam - enable instantiation of all RNG4 state handles")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c