Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e559e91cce3af215d78b7262360f19b95978aab3
Commit:     e559e91cce3af215d78b7262360f19b95978aab3
Parent:     e69ff734e15eb7f61621f8764ce0a2181823a737
Author:     Sebastian Siewior <[EMAIL PROTECTED]>
AuthorDate: Fri Jun 22 19:47:35 2007 +0800
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Wed Jul 11 20:58:55 2007 +0800

    [CRYPTO] api: Allow ablkcipher with no queues
    
    Evgeniy's hifn driver and probably mine don't use ablkcipher->queue at all.
    The show method of ablkcipher will access this field without checking if it
    is valid.
    
    Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/ablkcipher.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
index d45fa16..1c166b4 100644
--- a/crypto/ablkcipher.c
+++ b/crypto/ablkcipher.c
@@ -91,8 +91,10 @@ static void crypto_ablkcipher_show(struct seq_file *m, 
struct crypto_alg *alg)
        seq_printf(m, "min keysize  : %u\n", ablkcipher->min_keysize);
        seq_printf(m, "max keysize  : %u\n", ablkcipher->max_keysize);
        seq_printf(m, "ivsize       : %u\n", ablkcipher->ivsize);
-       seq_printf(m, "qlen         : %u\n", ablkcipher->queue->qlen);
-       seq_printf(m, "max qlen     : %u\n", ablkcipher->queue->max_qlen);
+       if (ablkcipher->queue) {
+               seq_printf(m, "qlen         : %u\n", ablkcipher->queue->qlen);
+               seq_printf(m, "max qlen     : %u\n", 
ablkcipher->queue->max_qlen);
+       }
 }
 
 const struct crypto_type crypto_ablkcipher_type = {
-
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