mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
[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>
This commit is contained in:
parent
58e40308f3
commit
7bc301e97b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue