Re: [PATCH v3] ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}

From: Theodore Ts'o
Date: Sat Aug 05 2023 - 08:20:52 EST



On Thu, 03 Aug 2023 10:17:13 +0100, Luís Henriques wrote:
> If the filename casefolding fails, we'll be leaking memory from the
> fscrypt_name struct, namely from the 'crypto_buf.name' member.
>
> Make sure we free it in the error path on both ext4_fname_setup_filename()
> and ext4_fname_prepare_lookup() functions.
>
>
> [...]

Applied, thanks!

[1/1] ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}
commit: 7ca4b085f430f3774c3838b3da569ceccd6a0177

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>