projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16db63f
)
[S390] zcrypt: fix ap_reset_domain()
author
Ralph Wuerthner
<rwuerthn@de.ibm.com>
Fri, 12 Oct 2007 14:11:29 +0000
(16:11 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Fri, 12 Oct 2007 14:13:05 +0000
(16:13 +0200)
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>
drivers/s390/crypto/ap_bus.c
patch
|
blob
|
history
diff --git
a/drivers/s390/crypto/ap_bus.c
b/drivers/s390/crypto/ap_bus.c
index 90bd22014513e7c56d05b7dd7eefe586c982761a..d334b0f7a1ec29dfea4f3f94290dd41ce762d5e6 100644
(file)
--- a/
drivers/s390/crypto/ap_bus.c
+++ b/
drivers/s390/crypto/ap_bus.c
@@
-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)