Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=39aa7cf612cc4e7f688c18f04c35afb51c57472e
Commit:     39aa7cf612cc4e7f688c18f04c35afb51c57472e
Parent:     16db63fda0c63de7a7feb59c6ca59ce7e2670ffb
Author:     Ralph Wuerthner <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 12 16:11:29 2007 +0200
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 16:13:05 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
---
 drivers/s390/crypto/ap_bus.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
index 90bd220..d334b0f 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)
 {
        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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to