projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2730017
)
crypto: tcrypt - Fix module return code when testing by name
author
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 19 Jun 2009 12:37:00 +0000
(20:37 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 19 Jun 2009 12:37:00 +0000
(20:37 +0800)
We should return 0/-ENOENT instead of 1/0 when testing by name.
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 dfeec0c544cbb78ced2d422045a6b2bdd5a595b9..a890a6792c7b076cbada66fc385090442ee9ffa1 100644
(file)
--- a/
crypto/tcrypt.c
+++ b/
crypto/tcrypt.c
@@
-889,7
+889,7
@@
static int do_test(int m)
static int do_alg_test(const char *alg, u32 type)
{
- return crypto_has_alg(alg, type, CRYPTO_ALG_TYPE_MASK);
+ return crypto_has_alg(alg, type, CRYPTO_ALG_TYPE_MASK)
? 0 : -ENOENT
;
}
static int __init tcrypt_mod_init(void)