[PATCH -next] nvmet-auth: Fix the error handling path in nvmet_auth_host_hash and nvmet_auth_ctrl_hash
Keith Busch
kbusch at kernel.org
Mon Jul 8 10:49:56 PDT 2024
On Sat, Jul 06, 2024 at 02:46:25PM +0800, Gaosheng Cui wrote:
> 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.
Thanks, applied to nvme-6.11 with a slightly condenced patch subject.
More information about the Linux-nvme
mailing list