crypto: keembay-ocs-hcu - Fix a WARN() message
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jan 2021 09:25:08 +0000 (12:25 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 14 Jan 2021 06:10:30 +0000 (17:10 +1100)
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>
drivers/crypto/keembay/keembay-ocs-hcu-core.c

index d547af0..c4b97b4 100644 (file)
@@ -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],