Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bc301e9 authored by Sebastian Siewior's avatar Sebastian Siewior Committed by Herbert Xu
Browse files

[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: default avatarSebastian Siewior <linux-crypto@ml.breakpoint.cc>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 58e40308
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}