Skip to content

Commit

Permalink
[S390] zcrypt: fix ap_reset_domain()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralph Wuerthner authored and Martin Schwidefsky committed Oct 12, 2007
1 parent 16db63f commit 39aa7cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,8 +1231,9 @@ static void ap_reset_domain(void)
{
int i;

for (i = 0; i < AP_DEVICES; i++)
ap_reset_queue(AP_MKQID(i, ap_domain_index));
if (ap_domain_index != -1)
for (i = 0; i < AP_DEVICES; i++)
ap_reset_queue(AP_MKQID(i, ap_domain_index));
}

static void ap_reset_all(void)
Expand Down

0 comments on commit 39aa7cf

Please sign in to comment.