crypto: sharah - Unregister correct algorithms for SAHARA 3
authorMichael Müller <michael@fds-team.de>
Sat, 14 Jul 2018 22:27:06 +0000 (00:27 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Jul 2018 05:51:22 +0000 (13:51 +0800)
commit0e7d4d932ffc23f75efb31a8c2ac2396c1b81c55
tree92fa79f4b6c48c880ef9df7dd0d13d8a781b5d4d
parente5c8ee1f7cc2b090ecb44b34b1f7d22665526fdc
crypto: sharah - Unregister correct algorithms for SAHARA 3

This patch fixes two typos related to unregistering algorithms supported by
SAHARAH 3. In sahara_register_algs the wrong algorithms are unregistered
in case of an error. In sahara_unregister_algs the wrong array is used to
determine the iteration count.

Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c