fix memory leak when /proc/yaffs is read
authorCharles Manning <cdhmanning@gmail.com>
Mon, 21 Oct 2019 19:46:14 +0000 (08:46 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Mon, 21 Oct 2019 19:48:12 +0000 (08:48 +1300)
commit27f18203551940abf35826a66978daf1b8124c6b
tree6fe0c2ff190159795067c4101cdb3b66e94e4edb
parentb4ce1bb1b46accb1619dc07164ef6945feded9db
fix memory leak when /proc/yaffs is read

Thanks to Jisheng Zhang <Jisheng.Zhang@synaptics.com> for supplying this patch

There is a kernel memory leak observed when the proc file /proc/yaffs
is read. This reason is that in yaffs_proc_open, single_open is called
and the respective release function is not called during release.

Fix with correct release function - single_release().

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
yaffs_vfs_multi.c