* [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers
@ 2024-04-12 13:41 Maurizio Lombardi
2024-04-14 8:35 ` Sagi Grimberg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Maurizio Lombardi @ 2024-04-12 13:41 UTC (permalink / raw)
To: kbusch; +Cc: sagi, hare, dwagner, linux-nvme
If nvmet_auth_ctrl_hash() fails, return the error code to its callers
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
---
drivers/nvme/target/auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ int nvmet_auth_ctrl_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_exponential(struct nvmet_req *req,
--
2.39.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers
2024-04-12 13:41 [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers Maurizio Lombardi
@ 2024-04-14 8:35 ` Sagi Grimberg
2024-04-16 2:38 ` Chaitanya Kulkarni
2024-05-07 15:02 ` Keith Busch
2 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2024-04-14 8:35 UTC (permalink / raw)
To: Maurizio Lombardi, kbusch; +Cc: hare, dwagner, linux-nvme
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers
2024-04-12 13:41 [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers Maurizio Lombardi
2024-04-14 8:35 ` Sagi Grimberg
@ 2024-04-16 2:38 ` Chaitanya Kulkarni
2024-05-07 15:02 ` Keith Busch
2 siblings, 0 replies; 4+ messages in thread
From: Chaitanya Kulkarni @ 2024-04-16 2:38 UTC (permalink / raw)
To: Maurizio Lombardi, kbusch; +Cc: sagi, hare, dwagner, linux-nvme
On 4/12/24 06:41, Maurizio Lombardi wrote:
> If nvmet_auth_ctrl_hash() fails, return the error code to its callers
nit:-
If nvmet_auth_ctrl_hash() fails, return the error code to its callers.
> Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
> ---
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
-ck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers
2024-04-12 13:41 [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers Maurizio Lombardi
2024-04-14 8:35 ` Sagi Grimberg
2024-04-16 2:38 ` Chaitanya Kulkarni
@ 2024-05-07 15:02 ` Keith Busch
2 siblings, 0 replies; 4+ messages in thread
From: Keith Busch @ 2024-05-07 15:02 UTC (permalink / raw)
To: Maurizio Lombardi; +Cc: sagi, hare, dwagner, linux-nvme
On Fri, Apr 12, 2024 at 03:41:54PM +0200, Maurizio Lombardi wrote:
> If nvmet_auth_ctrl_hash() fails, return the error code to its callers
>
> Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Thanks, applied to nvme-6.9.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-07 15:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-12 13:41 [PATCH] nvmet-auth: return the error code to the nvmet_auth_ctrl_hash() callers Maurizio Lombardi
2024-04-14 8:35 ` Sagi Grimberg
2024-04-16 2:38 ` Chaitanya Kulkarni
2024-05-07 15:02 ` Keith Busch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).