summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/keembay
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-01-06 10:25:08 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-14 07:10:30 +0100
commit2aa3da2d34787fbabd87ebf6468cf36bf8ed8d92 (patch)
tree8bc9cf16845b444e8aa64a266bee86ceb3e7081e /drivers/crypto/keembay
parentcrypto: x86 - use local headers for x86 specific shared declarations (diff)
downloadlinux-2aa3da2d34787fbabd87ebf6468cf36bf8ed8d92.tar.xz
linux-2aa3da2d34787fbabd87ebf6468cf36bf8ed8d92.zip
crypto: keembay-ocs-hcu - Fix a WARN() message
The first argument to WARN() is a condition and the messages is the second argument is the string, so this WARN() will only display the __func__ part of the message. Fixes: ae832e329a8d ("crypto: keembay-ocs-hcu - Add HMAC support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/keembay')
-rw-r--r--drivers/crypto/keembay/keembay-ocs-hcu-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/keembay/keembay-ocs-hcu-core.c b/drivers/crypto/keembay/keembay-ocs-hcu-core.c
index d547af047131..c4b97b4160e9 100644
--- a/drivers/crypto/keembay/keembay-ocs-hcu-core.c
+++ b/drivers/crypto/keembay/keembay-ocs-hcu-core.c
@@ -388,7 +388,7 @@ static int prepare_ipad(struct ahash_request *req)
* longer keys are hashed by kmb_ocs_hcu_setkey()).
*/
if (ctx->key_len > rctx->blk_sz) {
- WARN("%s: Invalid key length in tfm context\n", __func__);
+ WARN(1, "%s: Invalid key length in tfm context\n", __func__);
return -EINVAL;
}
memzero_explicit(&ctx->key[ctx->key_len],