diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2024-04-10 11:48:41 +0200 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-05-01 02:58:42 -0700 |
commit | 46b8f9f74f6d500871985e22eb19560b21f3bc81 (patch) | |
tree | cde21e5bcf1842b756dbdfd2e015172ddb15de04 /drivers/nvme | |
parent | 863fe60ed27f2c85172654a63c5b827e72c8b2e6 (diff) | |
download | linux-stable-46b8f9f74f6d500871985e22eb19560b21f3bc81.tar.gz linux-stable-46b8f9f74f6d500871985e22eb19560b21f3bc81.tar.bz2 linux-stable-46b8f9f74f6d500871985e22eb19560b21f3bc81.zip |
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/auth.c b/drivers/nvme/target/auth.c index 3ddbc3880cac..9e51c064b072 100644 --- a/drivers/nvme/target/auth.c +++ b/drivers/nvme/target/auth.c @@ -370,7 +370,7 @@ out_free_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, |