summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Siewior <linux-crypto@ml.breakpoint.cc>2007-03-21 08:58:43 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2007-03-21 08:58:43 +1100
commitef897264d3d87a1719c12afd655084f453e911ae (patch)
treeaa671f6fc60ba4907a08c1800c68576982cb5539
parent1f5918146bf45e2584a01b6e04222eb57716d7e3 (diff)
downloadlinux-crypto-ef897264d3d87a1719c12afd655084f453e911ae.tar.gz
linux-crypto-ef897264d3d87a1719c12afd655084f453e911ae.zip
[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 <linux-crypto@ml.breakpoint.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/tcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f5e9da31..8eaa5aa2 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;
}