linux/drivers/nvme/target
Gaosheng Cui 89f58f96d1 nvmet-auth: fix nvmet_auth hash error handling
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>
2024-07-08 10:28:16 -07:00
..
admin-cmd.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00
auth.c nvmet-auth: fix nvmet_auth hash error handling 2024-07-08 10:28:16 -07:00
configfs.c nvmet: fix ns enable/disable possible hang 2024-05-23 13:44:42 -07:00
core.c nvmet: add 'host_traddr' callback for debugfs 2024-06-24 12:53:43 -07:00
debugfs.c nvmet: add 'host_traddr' callback for debugfs 2024-06-24 12:53:43 -07:00
debugfs.h nvmet: add debugfs support 2024-06-24 12:53:42 -07:00
discovery.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00
fabrics-cmd-auth.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00
fabrics-cmd.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00
fc.c nvmet-fc: implement host_traddr() 2024-06-24 12:53:43 -07:00
fcloop.c nvme-fcloop: implement 'host_traddr' 2024-06-24 12:53:43 -07:00
io-cmd-bdev.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00
io-cmd-file.c nvmet: use bvec_set_page to initialize bvecs 2023-02-03 08:20:55 -07:00
Kconfig nvmet: add debugfs support 2024-06-24 12:53:42 -07:00
loop.c nvme: split device add from initialization 2024-06-24 12:53:42 -07:00
Makefile nvmet: add debugfs support 2024-06-24 12:53:42 -07:00
nvmet.h nvmet: add 'host_traddr' callback for debugfs 2024-06-24 12:53:43 -07:00
passthru.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00
rdma.c nvmet-rdma: implement host_traddr() 2024-06-24 12:53:43 -07:00
tcp.c nvmet-tcp: implement host_traddr() 2024-06-24 12:53:43 -07:00
trace.c nvmet: add tracing of zns commands 2024-03-08 06:58:20 -08:00
trace.h nvme: trace: avoid memcpy overflow warning 2024-01-05 13:16:18 -08:00
zns.c nvme: rename CDR/MORE/DNR to NVME_STATUS_* 2024-06-24 12:53:42 -07:00