Files
linux-stable-mirror/include/linux
Roberto Sassu 487f229efe shmem: use ramfs_kill_sb() for kill_sb method of ramfs-based tmpfs
commit 36ce9d76b0 upstream.

As the ramfs-based tmpfs uses ramfs_init_fs_context() for the
init_fs_context method, which allocates fc->s_fs_info, use ramfs_kill_sb()
to free it and avoid a memory leak.

Link: https://lkml.kernel.org/r/20230607161523.2876433-1-roberto.sassu@huaweicloud.com
Fixes: c3b1b1cbf0 ("ramfs: add support for "mode=" mount option")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-23 13:47:33 +02:00
..
2023-07-23 13:46:54 +02:00
2023-05-24 17:36:47 +01:00
2022-08-17 14:23:11 +02:00
2022-10-26 12:35:12 +02:00
2022-08-31 17:16:34 +02:00
2023-03-30 12:47:50 +02:00
2022-10-26 12:35:26 +02:00
2022-08-17 14:24:08 +02:00
2022-07-12 16:35:08 +02:00
2022-06-09 10:23:32 +02:00
2023-06-21 15:59:15 +02:00
2023-03-17 08:49:02 +01:00
2022-11-03 23:59:15 +09:00
2022-07-02 16:41:17 +02:00
2022-07-12 16:35:08 +02:00
2022-07-29 17:25:32 +02:00
2022-09-15 11:30:05 +02:00