linux-stable/fs/configfs
Chung-Chiang Cheng bb16947765 configfs: fix memleak in configfs_release_bin_file
[ Upstream commit 3c252b087d ]

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:17:41 +02:00
..
configfs_internal.h configfs: new object reprsenting tree fragments 2019-11-12 19:18:17 +01:00
dir.c configfs: fix config_item refcnt leak in configfs_rmdir() 2020-05-27 16:42:56 +02:00
file.c configfs: fix memleak in configfs_release_bin_file 2021-07-20 16:17:41 +02:00
inode.c fs: Replace current_fs_time() with current_time() 2016-09-27 21:06:22 -04:00
item.c configfs: Introduce config_item_get_unless_zero() 2017-06-12 13:20:20 +02:00
Kconfig
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:18:18 +01:00