Commit 46b8f9f7 authored by Maurizio Lombardi's avatar Maurizio Lombardi Committed by Keith Busch

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: default avatarMaurizio Lombardi <mlombard@redhat.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 863fe60e
......@@ -370,7 +370,7 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment