From: Ingo Tuchscherer Date: Tue, 15 Oct 2013 09:24:07 +0000 (+0200) Subject: s390/crypto: fix aes_s390 crypto module unload problem X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~58^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f57ba716b12ab939d46b7910768c3da3623fdc1;p=pandora-kernel.git 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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed