Skip to content

Commit

Permalink
[CRYPTO] tcrypt: Fix error checking for comp allocation
Browse files Browse the repository at this point in the history
This patch fixes loading the tcrypt module while deflate isn't available
at all (isn't build).

Signed-off-by: Sebastian Siewior <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Sebastian Siewior authored and herbertx committed Mar 20, 2007
1 parent 58e4030 commit 7bc301e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7bc301e

Please sign in to comment.