Skip to content

Commit 2aa3da2

Browse files
Dan Carpenterherbertx
authored andcommitted
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: ae832e3 ("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>
1 parent a04ea6f commit 2aa3da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/keembay/keembay-ocs-hcu-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static int prepare_ipad(struct ahash_request *req)
388388
* longer keys are hashed by kmb_ocs_hcu_setkey()).
389389
*/
390390
if (ctx->key_len > rctx->blk_sz) {
391-
WARN("%s: Invalid key length in tfm context\n", __func__);
391+
WARN(1, "%s: Invalid key length in tfm context\n", __func__);
392392
return -EINVAL;
393393
}
394394
memzero_explicit(&ctx->key[ctx->key_len],

0 commit comments

Comments
 (0)