OpenCloudOS-Kernel/drivers/nvme/target
Gaosheng Cui 908ce7f568 nvmet-auth: fix nvmet_auth hash error handling
[ Upstream commit 89f58f96d1e2357601c092d85b40a2109cf25ef3 ]

If we fail to call nvme_auth_augmented_challenge, or fail to kmalloc
for shash, we should free the memory allocation for challenge, so add
err path out_free_challenge to fix the memory leak.

Fixes: 7a277c37d3 ("nvmet-auth: Diffie-Hellman key exchange support")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:53:22 +02:00
..
Kconfig
Makefile
admin-cmd.c
auth.c nvmet-auth: fix nvmet_auth hash error handling 2024-08-03 08:53:22 +02:00
configfs.c nvmet: fix ns enable/disable possible hang 2024-06-12 11:12:53 +02:00
core.c nvmet: always initialize cqe.result 2024-07-25 09:50:46 +02:00
discovery.c
fabrics-cmd-auth.c nvmet: always initialize cqe.result 2024-07-25 09:50:46 +02:00
fabrics-cmd.c nvmet: always initialize cqe.result 2024-07-25 09:50:46 +02:00
fc.c nvmet-fc: take ref count on tgtport before delete assoc 2024-03-01 13:34:52 +01:00
fcloop.c nvmet-fcloop: swap the list_add_tail arguments 2024-03-01 13:34:52 +01:00
io-cmd-bdev.c bio-integrity: update the payload size in bio_integrity_add_page() 2023-08-09 16:05:35 -06:00
io-cmd-file.c
loop.c nvmet: use PAGE_SECTORS_SHIFT 2023-07-10 08:46:30 -07:00
nvmet.h nvmet: fix nvme status code when namespace is disabled 2024-06-12 11:11:30 +02:00
passthru.c nvmet-passthru: propagate status from id override functions 2024-06-21 14:38:35 +02:00
rdma.c
tcp.c nvmet-tcp: fix possible memory leak when tearing down a controller 2024-06-12 11:11:30 +02:00
trace.c
trace.h nvme: trace: avoid memcpy overflow warning 2024-01-25 15:35:55 -08:00
zns.c