OSDN Git Service

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)
commit40c98cb57cdbc377456116ad4582c89e329721b0
tree4a1bb2be9eb8bfb3b424f08cc2ca23dd4a1968f0
parent33fa46d7b310e06d2cb2ab5417c100af120bfb65
crypto: caam - fix RNG deinstantiation error checking

RNG instantiation was previously fixed by
commit 62743a4145bb9 ("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: 1005bccd7a4a6 ("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