android_kernel_xiaomi_sm8350/fs/udf
Jesper Juhl a4264b3f40 UDF: Close small mem leak in udf_find_entry()
Hi,

There's a small memory leak in fs/udf/namei.c::udf_find_entry().

We dynamically allocate memory for 'fname' with kmalloc() and in most
situations we free it before we leave the function, but there is one
situation where we do not (but should). This patch closes the leak by
jumping to the 'out_ok' label which does the correct cleanup rather than
doing half the cleanup and returning directly.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jan Kara <jack@suse.cz>
2011-01-06 17:53:53 +01:00
..
balloc.c udf: Call udf_add_free_space() for more blocks at once in udf_free_blocks() 2011-01-06 17:03:56 +01:00
dir.c udf: Remove unnecessary bkl usages 2011-01-06 17:03:57 +01:00
directory.c
ecma_167.h
file.c udf: Protect udf_file_aio_write from possible races 2011-01-06 17:03:57 +01:00
ialloc.c udf: Move handling of uniqueID into a helper function and protect it by a s_alloc_mutex 2011-01-06 17:03:55 +01:00
inode.c udf: Remove unnecessary bkl usages 2011-01-06 17:03:57 +01:00
Kconfig BKL: introduce CONFIG_BKL. 2010-10-21 15:44:13 +02:00
lowlevel.c
Makefile
misc.c
namei.c UDF: Close small mem leak in udf_find_entry() 2011-01-06 17:53:53 +01:00
osta_udf.h
partition.c udf: Use of s_alloc_mutex to serialize udf_relocate_blocks() execution 2011-01-06 17:03:56 +01:00
super.c udf: Remove unnecessary bkl usages 2011-01-06 17:03:57 +01:00
symlink.c udf: Replace bkl with the UDF_I(inode)->i_data_sem for protect udf_inode_info struct 2011-01-06 17:03:56 +01:00
truncate.c
udf_i.h udf: Replace bkl with the UDF_I(inode)->i_data_sem for protect udf_inode_info struct 2011-01-06 17:03:56 +01:00
udf_sb.h udf: Protect default inode credentials by rwlock 2011-01-06 17:03:55 +01:00
udfdecl.h udf: Move handling of uniqueID into a helper function and protect it by a s_alloc_mutex 2011-01-06 17:03:55 +01:00
udfend.h
udftime.c
unicode.c