Commit ea400657 authored by Herbert Xu's avatar Herbert Xu

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 27300176
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment