[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>

authored by Felix Beck and committed by Martin Schwidefsky 19b123eb 0b665d77

+4
+2
drivers/s390/crypto/zcrypt_pcicc.c
··· 373 373 zdev->max_mod_size = PCICC_MAX_MOD_SIZE_OLD; 374 374 return -EAGAIN; 375 375 } 376 + if (service_rc == 8 && service_rs == 72) 377 + return -EINVAL; 376 378 zdev->online = 0; 377 379 return -EAGAIN; /* repeat the request on a different device. */ 378 380 }
+2
drivers/s390/crypto/zcrypt_pcixcc.c
··· 470 470 } 471 471 if (service_rc == 12 && service_rs == 769) 472 472 return -EINVAL; 473 + if (service_rc == 8 && service_rs == 72) 474 + return -EINVAL; 473 475 zdev->online = 0; 474 476 return -EAGAIN; /* repeat the request on a different device. */ 475 477 }