]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:05 +0000 (08:38 +0200)
commitef275ba514d97398a5a78bd23929663396872c58
tree508e102ac0c6cb7a9591ce62ce1830cfd0b5b703
parent82c53969af8cee3d47181985feed6b19e9b193af
crypto: sharah - Unregister correct algorithms for SAHARA 3

[ Upstream commit 0e7d4d932ffc23f75efb31a8c2ac2396c1b81c55 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/sahara.c