Skip to content

Commit 4b9a89b

Browse files
maurizio-lombardikeithbusch
authored andcommitted
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>
1 parent d5887dc commit 4b9a89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/target/auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,
480480
nvme_auth_free_key(transformed_key);
481481
out_free_tfm:
482482
crypto_free_shash(shash_tfm);
483-
return 0;
483+
return ret;
484484
}
485485

486486
int nvmet_auth_ctrl_exponential(struct nvmet_req *req,

0 commit comments

Comments
 (0)