]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
zcrypt: Do not remove coprocessor for error 8/72
authorFelix Beck <felix.beck@de.ibm.com>
Wed, 27 Jan 2010 09:12:39 +0000 (10:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Feb 2010 12:50:44 +0000 (04:50 -0800)
commit083beff011df31d82abe859479ab6c33af5504f5
treef16518781737ed281e8b18ccdb94c96bd3c2b29b
parent63693ee86b7ebdcf8f08a40158782b6751bda3fc
zcrypt: Do not remove coprocessor for error 8/72

commit 19b123ebacacdce5e75045bfe82122b01c821a5b upstream.

In a case where the number of the input data is bigger than the
modulus of the key, the coprocessor adapters will report an 8/72
error. This case is not caught yet, thus the adapter will be taken
offline. To prevent this, we return an -EINVAL instead.

Signed-off-by: Felix Beck <felix.beck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/s390/crypto/zcrypt_pcicc.c
drivers/s390/crypto/zcrypt_pcixcc.c