]> git.baikalelectronics.ru Git - kernel.git/commit
s390/crypto: fix aes_s390 crypto module unload problem
authorIngo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Tue, 15 Oct 2013 09:24:07 +0000 (11:24 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 24 Oct 2013 15:17:10 +0000 (17:17 +0200)
commit321d0bad7a84e73735f1fcbc48be58a579f00f6f
treef67e873f2e931ae677a6795e11b63b8e3c18a505
parent9310ea4677135cab791fcc5ae0a47f6933619ccc
s390/crypto: fix aes_s390 crypto module unload problem

If a machine has no hardware support for the xts-aes or ctr-aes algorithms
they are not registered in aes_s390_init. But aes_s390_fini unconditionally
unregisters the algorithms which causes crypto_remove_alg to crash.
Add two flag variables to remember if xts-aes and ctr-aes have been added.

Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/aes_s390.c