android_kernel_motorola_sm6225/fs/configfs
Chung-Chiang Cheng 01b00e4625 configfs: fix memleak in configfs_release_bin_file
[ Upstream commit 3c252b087de08d3cb32468b54a158bd7ad0ae2f7 ]

When reading binary attributes in progress, buffer->bin_buffer is setup in
configfs_read_bin_file() but never freed.

Fixes: 03607ace80 ("configfs: implement binary attributes")
Signed-off-by: Chung-Chiang Cheng <cccheng@synology.com>
[hch: move the vfree rather than duplicating it]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:15:57 +02:00
..
configfs_internal.h configfs: new object reprsenting tree fragments 2019-11-12 19:20:46 +01:00
dir.c configfs: fix config_item refcnt leak in configfs_rmdir() 2020-05-27 17:37:32 +02:00
file.c configfs: fix memleak in configfs_release_bin_file 2021-07-20 16:15:57 +02:00
inode.c vfs: change inode times to use struct timespec64 2018-06-05 16:57:31 -07:00
item.c configfs: use kvasprintf() instead of open-coding it 2018-06-19 07:08:12 +02:00
Kconfig configfs: change depends -> select SYSFS 2011-01-16 21:22:29 +00:00
Makefile
mount.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
symlink.c configfs: fix a deadlock in configfs_symlink() 2019-11-12 19:20:47 +01:00