diff options
| author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2024-07-06 14:46:25 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2024-07-08 10:28:16 -0700 |
| commit | 89f58f96d1e2357601c092d85b40a2109cf25ef3 (patch) | |
| tree | fe1b5e2b47945343556be6e42a2e97972edc3944 /scripts/generate_rust_analyzer.py | |
| parent | nvme: implement ->get_unique_id (diff) | |
| download | linux-89f58f96d1e2357601c092d85b40a2109cf25ef3.tar.gz linux-89f58f96d1e2357601c092d85b40a2109cf25ef3.zip | |
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
