Commit 7bc301e97b96597df967f11b9fa9cf391109893a

Authored by Sebastian Siewior
Committed by Herbert Xu
1 parent 58e40308f3

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -768,7 +768,7 @@
768 768 tv = (void *)tvmem;
769 769  
770 770 tfm = crypto_alloc_comp("deflate", 0, CRYPTO_ALG_ASYNC);
771   - if (tfm == NULL) {
  771 + if (IS_ERR(tfm)) {
772 772 printk("failed to load transform for deflate\n");
773 773 return;
774 774 }