Commit 2aa3da2d34787fbabd87ebf6468cf36bf8ed8d92

Authored by Dan Carpenter
Committed by Herbert Xu
1 parent a04ea6f7ff

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/crypto/keembay/keembay-ocs-hcu-core.c
... ... @@ -388,7 +388,7 @@
388 388 * longer keys are hashed by kmb_ocs_hcu_setkey()).
389 389 */
390 390 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__);
392 392 return -EINVAL;
393 393 }
394 394 memzero_explicit(&ctx->key[ctx->key_len],