mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
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 <herbert@gondor.apana.org.au>
This commit is contained in:
parent
27300176d7
commit
ea40065769
@ -889,7 +889,7 @@ static int do_test(int m)
|
|||||||
|
|
||||||
static int do_alg_test(const char *alg, u32 type)
|
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)
|
static int __init tcrypt_mod_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user