[S390] 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)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 27 Jan 2010 09:12:49 +0000 (10:12 +0100)
commit19b123ebacacdce5e75045bfe82122b01c821a5b
tree31a7975e6521f306bb7d6e09e7453d860d56ecdb
parent0b665d770d2d4dca8e9ea53129735fe214838ec9
[S390] zcrypt: Do not remove coprocessor for error 8/72

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>
drivers/s390/crypto/zcrypt_pcicc.c
drivers/s390/crypto/zcrypt_pcixcc.c