From: Sebastian Siewior Date: Tue, 20 Mar 2007 21:58:43 +0000 (+1100) Subject: [CRYPTO] tcrypt: Fix error checking for comp allocation X-Git-Tag: v2.6.21-rc5~49^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7bc301e97b96597df967f11b9fa9cf391109893a;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Herbert Xu --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f5e9da319ec..8eaa5aa210b 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; }