diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2024-04-10 11:48:42 +0200 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-05-01 02:58:42 -0700 |
commit | 445f9119e70368ccc964575c2a6d3176966a9d65 (patch) | |
tree | 33b497187363effe51fbc50d195b49dfc86b3ae3 /drivers | |
parent | 46b8f9f74f6d500871985e22eb19560b21f3bc81 (diff) | |
download | linux-stable-445f9119e70368ccc964575c2a6d3176966a9d65.tar.gz linux-stable-445f9119e70368ccc964575c2a6d3176966a9d65.tar.bz2 linux-stable-445f9119e70368ccc964575c2a6d3176966a9d65.zip |
nvmet-auth: replace pr_debug() with pr_err() to report an error.
In nvmet_auth_host_hash(), if a mismatch is detected in the hash length
the kernel should print an error.
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/target/auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nvme/target/auth.c b/drivers/nvme/target/auth.c index 9e51c064b072..fb518b00f71f 100644 --- a/drivers/nvme/target/auth.c +++ b/drivers/nvme/target/auth.c @@ -285,9 +285,9 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response, } if (shash_len != crypto_shash_digestsize(shash_tfm)) { - pr_debug("%s: hash len mismatch (len %d digest %d)\n", - __func__, shash_len, - crypto_shash_digestsize(shash_tfm)); + pr_err("%s: hash len mismatch (len %d digest %d)\n", + __func__, shash_len, + crypto_shash_digestsize(shash_tfm)); ret = -EINVAL; goto out_free_tfm; } |