projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58e4030
)
[CRYPTO] tcrypt: Fix error checking for comp allocation
author
Sebastian Siewior
<linux-crypto@ml.breakpoint.cc>
Tue, 20 Mar 2007 21:58:43 +0000
(08:58 +1100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 20 Mar 2007 21:58:43 +0000
(08:58 +1100)
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>
crypto/tcrypt.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/tcrypt.c
b/crypto/tcrypt.c
index f5e9da319ece70cf6823a94947c3ee4f08273d89..8eaa5aa210b0d1983f40d57584c52f04889a88e4 100644
(file)
--- 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;
}