]> 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)
commit7f93c5e4c98344e069374eca17902d365acfc21f
tree4a1bb2be9eb8bfb3b424f08cc2ca23dd4a1968f0
parent784fb25b948d9523ca6eeeafbb4092a329772ca0
crypto: caam - fix RNG deinstantiation error checking

RNG instantiation was previously fixed by
commit adfa60e8134b2 ("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: d0e5b6fada15d ("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