aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorRalph Wuerthner <rwuerthn@de.ibm.com>2007-10-12 10:11:29 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-10-12 10:13:05 -0400
commit39aa7cf612cc4e7f688c18f04c35afb51c57472e (patch)
tree070238b606a05638904586576897f4d5b4c2c64a /drivers/s390
parent16db63fda0c63de7a7feb59c6ca59ce7e2670ffb (diff)
[S390] zcrypt: fix ap_reset_domain()
Resetting of a all queues within a domain requires that a domain must be selected first. Signed-off-by: Ralph Wuerthner <rwuerthn@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/crypto/ap_bus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
index 90bd2201451..d334b0f7a1e 100644
--- a/drivers/s390/crypto/ap_bus.c
+++ b/drivers/s390/crypto/ap_bus.c
@@ -1231,8 +1231,9 @@ static void ap_reset_domain(void)
1231{ 1231{
1232 int i; 1232 int i;
1233 1233
1234 for (i = 0; i < AP_DEVICES; i++) 1234 if (ap_domain_index != -1)
1235 ap_reset_queue(AP_MKQID(i, ap_domain_index)); 1235 for (i = 0; i < AP_DEVICES; i++)
1236 ap_reset_queue(AP_MKQID(i, ap_domain_index));
1236} 1237}
1237 1238
1238static void ap_reset_all(void) 1239static void ap_reset_all(void)