From: Herbert Xu Date: Fri, 19 Jun 2009 12:37:00 +0000 (+0800) Subject: crypto: tcrypt - Fix module return code when testing by name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea4006576945195ed35824acfb4007ca7cb78b70;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: tcrypt - Fix module return code when testing by name We should return 0/-ENOENT instead of 1/0 when testing by name. Signed-off-by: Herbert Xu --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index dfeec0c544cb..a890a6792c7b 100644 --- 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)