diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2024-04-12 15:41:54 +0200 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-05-07 16:57:38 +0200 |
commit | 4b9a89be214235acbff003232baba123c868a25c (patch) | |
tree | b282d6dac159313a7c3ffacd62c530c5e80fc910 /drivers/nvme/target | |
parent | nvme-pci: Add quirk for broken MSIs (diff) | |
download | linux-4b9a89be214235acbff003232baba123c868a25c.tar.xz linux-4b9a89be214235acbff003232baba123c868a25c.zip |
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>
Diffstat (limited to 'drivers/nvme/target')
-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 fb518b00f71f..4f08362aee8b 100644 --- a/drivers/nvme/target/auth.c +++ b/drivers/nvme/target/auth.c @@ -480,7 +480,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_exponential(struct nvmet_req *req, |