nvmet-auth: return the error code to the nvmet_auth_host_hash() callers

If the nvmet_auth_host_hash() function fails, the error code should
be returned to its callers.

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>
This commit is contained in:
Maurizio Lombardi 2024-04-10 11:48:41 +02:00 committed by Keith Busch
parent 863fe60ed2
commit 46b8f9f74f
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ out_free_response:
nvme_auth_free_key(transformed_key);
out_free_tfm:
crypto_free_shash(shash_tfm);
return 0;
return ret;
}
int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,