s390/crypto: Don't panic after crypto instruction failures
authorJan Glauber <jang@linux.vnet.ibm.com>
Fri, 26 Oct 2012 13:06:12 +0000 (15:06 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:46 +0000 (00:58 +0100)
commit501ec62ed39a7232827d0c698c375d5294bda1ba
tree2157a91c1276ea46011f01f7db8fc426520728e2
parent6b1246d93e7af2d92e3652d96299fd2224c75ef7
s390/crypto: Don't panic after crypto instruction failures

commit 36eb2caa7bace31b7868a57f77cb148e58d1c9f9 upstream.

Remove the BUG_ON's that check for failure or incomplete
results of the s390 hardware crypto instructions.
Rather report the errors as -EIO to the crypto layer.

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/s390/crypto/aes_s390.c
arch/s390/crypto/des_s390.c
arch/s390/crypto/ghash_s390.c
arch/s390/crypto/sha_common.c