mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
crypto: inside-secure/eip93 - fix kernel panic in driver detach
During driver detach, the same hash algorithm is unregistered multiple
times due to a wrong iterator.
Fixes: 9739f5f93b ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
1ab7c36600
commit
b6e32ba6d3
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ static void eip93_unregister_algs(unsigned int i)
|
|||
crypto_unregister_aead(&eip93_algs[j]->alg.aead);
|
||||
break;
|
||||
case EIP93_ALG_TYPE_HASH:
|
||||
crypto_unregister_ahash(&eip93_algs[i]->alg.ahash);
|
||||
crypto_unregister_ahash(&eip93_algs[j]->alg.ahash);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue