mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
nvmet-auth: replace pr_debug() with pr_err() to report an error.
[ Upstream commit 445f9119e70368ccc964575c2a6d3176966a9d65 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
068095539a
commit
8244dfd22c
@@ -284,7 +284,7 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (shash_len != crypto_shash_digestsize(shash_tfm)) {
|
if (shash_len != crypto_shash_digestsize(shash_tfm)) {
|
||||||
pr_debug("%s: hash len mismatch (len %d digest %d)\n",
|
pr_err("%s: hash len mismatch (len %d digest %d)\n",
|
||||||
__func__, shash_len,
|
__func__, shash_len,
|
||||||
crypto_shash_digestsize(shash_tfm));
|
crypto_shash_digestsize(shash_tfm));
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user