diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/algapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index 58cc19164801..8ff8c2656d9c 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -149,6 +149,11 @@ static int __crypto_register_alg(struct crypto_alg *alg, | |||
149 | if (crypto_is_larval(q)) { | 149 | if (crypto_is_larval(q)) { |
150 | struct crypto_larval *larval = (void *)q; | 150 | struct crypto_larval *larval = (void *)q; |
151 | 151 | ||
152 | /* | ||
153 | * Check to see if either our generic name or | ||
154 | * specific name can satisfy the name requested | ||
155 | * by the larval entry q. | ||
156 | */ | ||
152 | if (strcmp(alg->cra_name, q->cra_name) && | 157 | if (strcmp(alg->cra_name, q->cra_name) && |
153 | strcmp(alg->cra_driver_name, q->cra_name)) | 158 | strcmp(alg->cra_driver_name, q->cra_name)) |
154 | continue; | 159 | continue; |