summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2024-07-06 09:46:25 +0300
committerKeith Busch <kbusch@kernel.org>2024-07-08 20:28:16 +0300
commit89f58f96d1e2357601c092d85b40a2109cf25ef3 (patch)
treefe1b5e2b47945343556be6e42a2e97972edc3944 /scripts/generate_rust_analyzer.py
parent18f03a063d41a90115373dc41c1fc22bd3e0a6ad (diff)
downloadlinux-89f58f96d1e2357601c092d85b40a2109cf25ef3.tar.xz
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: 7a277c37d352 ("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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions