diff options
author | Sebastian Siewior <linux-crypto@ml.breakpoint.cc> | 2007-03-21 08:58:43 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-03-21 08:58:43 +1100 |
commit | 7bc301e97b96597df967f11b9fa9cf391109893a (patch) | |
tree | b4da9e49f7659d962ac8bb162058ab58f5171d50 | |
parent | 58e40308f329275ccf556312a9cd788522f7c224 (diff) | |
download | linux-stable-7bc301e97b96597df967f11b9fa9cf391109893a.tar.gz linux-stable-7bc301e97b96597df967f11b9fa9cf391109893a.tar.bz2 linux-stable-7bc301e97b96597df967f11b9fa9cf391109893a.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f5e9da319ece..8eaa5aa210b0 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; } |