diff options
author | Dongliang Mu <mudongliangabcd@gmail.com> | 2021-10-27 17:34:41 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-10-27 17:45:20 +0300 |
commit | 81dedaf10c20959bdf5624f9783f408df26ba7a4 (patch) | |
tree | cfbdbdeb6b1dd29432c0274cafe04c74cfc9b8a5 /fs/d_path.c | |
parent | e96a1866b40570b5950cda8602c2819189c62a48 (diff) | |
download | linux-81dedaf10c20959bdf5624f9783f408df26ba7a4.tar.xz |
fs: reiserfs: remove useless new_opts in reiserfs_remount
Since the commit c3d98ea08291 ("VFS: Don't use save/replace_mount_options
if not using generic_show_options") eliminates replace_mount_options
in reiserfs_remount, but does not handle the allocated new_opts,
it will cause memory leak in the reiserfs_remount.
Because new_opts is useless in reiserfs_mount, so we fix this bug by
removing the useless new_opts in reiserfs_remount.
Fixes: c3d98ea08291 ("VFS: Don't use save/replace_mount_options if not using generic_show_options")
Link: https://lore.kernel.org/r/20211027143445.4156459-1-mudongliangabcd@gmail.com
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/d_path.c')
0 files changed, 0 insertions, 0 deletions