Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7bc301e97b96597df967f11b9fa9cf391109893a
Commit:     7bc301e97b96597df967f11b9fa9cf391109893a
Parent:     58e40308f329275ccf556312a9cd788522f7c224
Author:     Sebastian Siewior <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 21 08:58:43 2007 +1100
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Wed Mar 21 08:58:43 2007 +1100

    [CRYPTO] tcrypt: Fix error checking for comp allocation
    
    This patch fixes loading the tcrypt module while deflate isn't available
    at all (isn't build).
    
    Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 crypto/tcrypt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f5e9da3..8eaa5aa 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -768,7 +768,7 @@ static void test_deflate(void)
        tv = (void *)tvmem;
 
        tfm = crypto_alloc_comp("deflate", 0, CRYPTO_ALG_ASYNC);
-       if (tfm == NULL) {
+       if (IS_ERR(tfm)) {
                printk("failed to load transform for deflate\n");
                return;
        }
-
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