]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit3e5f6f659e1aa22d492acbb45b41250b250476a6
tree31a7975e6521f306bb7d6e09e7453d860d56ecdb
parent43e10e317f1e2aa139df90672cb29c13c29a360b
[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