Skip to content

Commit 445f911

Browse files
maurizio-lombardikeithbusch
authored andcommitted
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>
1 parent 46b8f9f commit 445f911

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/nvme/target/auth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response,
285285
}
286286

287287
if (shash_len != crypto_shash_digestsize(shash_tfm)) {
288-
pr_debug("%s: hash len mismatch (len %d digest %d)\n",
289-
__func__, shash_len,
290-
crypto_shash_digestsize(shash_tfm));
288+
pr_err("%s: hash len mismatch (len %d digest %d)\n",
289+
__func__, shash_len,
290+
crypto_shash_digestsize(shash_tfm));
291291
ret = -EINVAL;
292292
goto out_free_tfm;
293293
}

0 commit comments

Comments
 (0)