]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:17:00 +0000 (10:17 +0200)
commit648a9ee3c1db76d81e823dee7ea957186325695f
treee4fe3a53a981b4e0ecc9201d211b6f9f3fbee9e5
parenta605b8fd8e74a5a76ff79f4b0bb2f457d5d8945a
crypto: caam - fix RNG deinstantiation error checking

BugLink: http://bugs.launchpad.net/bugs/1685140
commit 40c98cb57cdbc377456116ad4582c89e329721b0 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/crypto/caam/ctrl.c