Commit b069904a authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[CRYPTO]: crypto_alg_lookup() should fail when passed a NULL name.

parent f083fae2
......@@ -36,6 +36,9 @@ static inline void crypto_alg_put(struct crypto_alg *alg)
struct crypto_alg *crypto_alg_lookup(const char *name)
{
struct crypto_alg *q, *alg = NULL;
if (!name)
return NULL;
down_read(&crypto_alg_sem);
......
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