aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorLuís Henriques <[email protected]>2023-08-03 10:17:13 +0100
committerTheodore Ts'o <[email protected]>2023-08-05 08:17:56 -0400
commit7ca4b085f430f3774c3838b3da569ceccd6a0177 (patch)
tree76fdb5edb74d16c8e44425165cc5bbf2dc333f99 /net/lapb/lapb_subr.c
parent5f02a30eac5cc1c081cbdb42d19fd0ded00b0618 (diff)
ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}
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. Cc: [email protected] Fixes: 1ae98e295fa2 ("ext4: optimize match for casefolded encrypted dirs") Signed-off-by: Luís Henriques <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions