mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-15 05:39:39 +02:00
nvmet-auth: return the error code to the nvmet_auth_host_hash() callers
[ Upstream commit 46b8f9f74f
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8871cab467
commit
57a23adbc4
|
@ -368,7 +368,7 @@ out_free_response:
|
||||||
kfree_sensitive(host_response);
|
kfree_sensitive(host_response);
|
||||||
out_free_tfm:
|
out_free_tfm:
|
||||||
crypto_free_shash(shash_tfm);
|
crypto_free_shash(shash_tfm);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,
|
int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user