Skip to content

Commit 46b8f9f

Browse files
maurizio-lombardikeithbusch
authored andcommitted
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>
1 parent 863fe60 commit 46b8f9f

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
@@ -370,7 +370,7 @@ int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response,
370370
nvme_auth_free_key(transformed_key);
371371
out_free_tfm:
372372
crypto_free_shash(shash_tfm);
373-
return 0;
373+
return ret;
374374
}
375375

376376
int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,

0 commit comments

Comments
 (0)