diff options
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index 17a5fff8f777..2154815201a7 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -644,7 +644,9 @@ const char *crypto_attr_alg_name(struct rtattr *rta) | |||
644 | } | 644 | } |
645 | EXPORT_SYMBOL_GPL(crypto_attr_alg_name); | 645 | EXPORT_SYMBOL_GPL(crypto_attr_alg_name); |
646 | 646 | ||
647 | struct crypto_alg *crypto_attr_alg(struct rtattr *rta, u32 type, u32 mask) | 647 | struct crypto_alg *crypto_attr_alg2(struct rtattr *rta, |
648 | const struct crypto_type *frontend, | ||
649 | u32 type, u32 mask) | ||
648 | { | 650 | { |
649 | const char *name; | 651 | const char *name; |
650 | int err; | 652 | int err; |
@@ -654,9 +656,9 @@ struct crypto_alg *crypto_attr_alg(struct rtattr *rta, u32 type, u32 mask) | |||
654 | if (IS_ERR(name)) | 656 | if (IS_ERR(name)) |
655 | return ERR_PTR(err); | 657 | return ERR_PTR(err); |
656 | 658 | ||
657 | return crypto_alg_mod_lookup(name, type, mask); | 659 | return crypto_find_alg(name, frontend, type, mask); |
658 | } | 660 | } |
659 | EXPORT_SYMBOL_GPL(crypto_attr_alg); | 661 | EXPORT_SYMBOL_GPL(crypto_attr_alg2); |
660 | 662 | ||
661 | int crypto_attr_u32(struct rtattr *rta, u32 *num) | 663 | int crypto_attr_u32(struct rtattr *rta, u32 *num) |
662 | { | 664 | { |