X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=crypto%2Fapi.c;h=64f2d365a8e94d5bcd9a199e44b465da105030a4;hb=39cefc5f6cd25d555e0455b24810e9aff365b8d6;hp=69508ae9345ee3423f3c9edd94aee78c2c5d0e20;hpb=15ad333269a390b25e61677f18c8461850defcde;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/crypto/api.c b/crypto/api.c index 69508ae..64f2d36 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -114,7 +114,7 @@ struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) larval->alg.cra_priority = -1; larval->alg.cra_destroy = crypto_larval_destroy; - strlcpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); + strscpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); init_completion(&larval->completion); return larval; @@ -321,7 +321,7 @@ struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask) /* * If the internal flag is set for a cipher, require a caller to - * to invoke the cipher with the internal flag to use that cipher. + * invoke the cipher with the internal flag to use that cipher. * Also, if a caller wants to allocate a cipher that may or may * not be an internal cipher, use type | CRYPTO_ALG_INTERNAL and * !(mask & CRYPTO_ALG_INTERNAL).