aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/crypto/ap_bus.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
index a60fc2f9f4b2..3d7f19fb9a4e 100644
--- a/drivers/s390/crypto/ap_bus.c
+++ b/drivers/s390/crypto/ap_bus.c
@@ -1060,9 +1060,13 @@ static inline int ap_test_config_card_id(unsigned int id)
1060 */ 1060 */
1061static inline int ap_test_config_domain(unsigned int domain) 1061static inline int ap_test_config_domain(unsigned int domain)
1062{ 1062{
1063 if (!ap_configuration) 1063 if (!ap_configuration) /* QCI not supported */
1064 return 1; 1064 if (domain < 16)
1065 return ap_test_config(ap_configuration->aqm, domain); 1065 return 1; /* then domains 0...15 are configured */
1066 else
1067 return 0;
1068 else
1069 return ap_test_config(ap_configuration->aqm, domain);
1066} 1070}
1067 1071
1068/* 1072/*