Commit:     d8058480b35dbc3d1e6085b3f13b80af27def09e
Parent:     70613783fc0f6e37b442d79e8417f71a2b71ed93
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 22:27:29 2007 +0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:55:47 2007 -0700

    [CRYPTO] api: Explain the comparison on larval cra_name
    This patch adds a comment to explain why we compare the cra_driver_name of
    the algorithm being registered against the cra_name of a larval as opposed
    to the cra_driver_name of the larval.
    In fact larvals have only one name, cra_name which is the name that was
    requested by the user.  The test here is simply trying to find out whether
    the algorithm being registered can or can not satisfy the larval.
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
 crypto/algapi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/crypto/algapi.c b/crypto/algapi.c
index 58cc191..8ff8c26 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -149,6 +149,11 @@ static int __crypto_register_alg(struct crypto_alg *alg,
                if (crypto_is_larval(q)) {
                        struct crypto_larval *larval = (void *)q;
+                       /*
+                        * Check to see if either our generic name or
+                        * specific name can satisfy the name requested
+                        * by the larval entry q.
+                        */
                        if (strcmp(alg->cra_name, q->cra_name) &&
                            strcmp(alg->cra_driver_name, q->cra_name))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to