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

If nvmet_auth_ctrl_hash() fails, return the error code to its callers

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
Maurizio Lombardi
2024-04-12 15:41:54 +02:00
committed by Keith Busch
parent d5887dc6b6
commit 4b9a89be21

View File

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