]> git.baikalelectronics.ru Git - kernel.git/commit
fs: reiserfs: remove useless new_opts in reiserfs_remount
authorDongliang Mu <mudongliangabcd@gmail.com>
Wed, 27 Oct 2021 14:34:41 +0000 (22:34 +0800)
committerJan Kara <jack@suse.cz>
Wed, 27 Oct 2021 14:45:20 +0000 (16:45 +0200)
commitdc8a8d010be23cc4635b41da30be4171cb85f747
treecfbdbdeb6b1dd29432c0274cafe04c74cfc9b8a5
parentfccf2097dd0e29a27f11c657350f4189c46a37c1
fs: reiserfs: remove useless new_opts in reiserfs_remount

Since the commit 6130f167d73b ("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: 6130f167d73b ("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>
fs/reiserfs/super.c