Skip to content

Commit

Permalink
nvmet-auth: return the error code to the nvmet_auth_host_hash() callers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
maurizio-lombardi authored and keithbusch committed May 1, 2024
1 parent 863fe60 commit 46b8f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/target/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 46b8f9f

Please sign in to comment.