提交 7bc301e9 编写于 作者: S Sebastian Siewior 提交者: Herbert Xu

[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: NSebastian Siewior <linux-crypto@ml.breakpoint.cc>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 58e40308
...@@ -768,7 +768,7 @@ static void test_deflate(void) ...@@ -768,7 +768,7 @@ static void test_deflate(void)
tv = (void *)tvmem; tv = (void *)tvmem;
tfm = crypto_alloc_comp("deflate", 0, CRYPTO_ALG_ASYNC); tfm = crypto_alloc_comp("deflate", 0, CRYPTO_ALG_ASYNC);
if (tfm == NULL) { if (IS_ERR(tfm)) {
printk("failed to load transform for deflate\n"); printk("failed to load transform for deflate\n");
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册