From: Sebastian Siewior Date: Tue, 20 Mar 2007 21:58:43 +0000 (+1100) Subject: [CRYPTO] tcrypt: Fix error checking for comp allocation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7bc301e97b96597df967f11b9fa9cf391109893a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Herbert Xu --- 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; }