diff options
| author | 2024-07-06 14:46:25 +0800 | |
|---|---|---|
| committer | 2024-07-08 10:28:16 -0700 | |
| commit | 89f58f96d1e2357601c092d85b40a2109cf25ef3 (patch) | |
| tree | fe1b5e2b47945343556be6e42a2e97972edc3944 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | nvme: implement ->get_unique_id (diff) | |
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 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
