Commit 39aa7cf6 authored by Ralph Wuerthner's avatar Ralph Wuerthner Committed by Martin Schwidefsky

[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: default avatarRalph Wuerthner <rwuerthn@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 16db63fd
...@@ -1231,6 +1231,7 @@ static void ap_reset_domain(void) ...@@ -1231,6 +1231,7 @@ static void ap_reset_domain(void)
{ {
int i; int i;
if (ap_domain_index != -1)
for (i = 0; i < AP_DEVICES; i++) for (i = 0; i < AP_DEVICES; i++)
ap_reset_queue(AP_MKQID(i, ap_domain_index)); ap_reset_queue(AP_MKQID(i, ap_domain_index));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment