fs: reiserfs: remove useless new_opts in reiserfs_remount
stable inclusion from stable-v5.10.166 commit c4097e844a6e1368b7de1fded5713e7c52c07237 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7TH9O Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c4097e844a6e1368b7de1fded5713e7c52c07237 -------------------------------- commit 81dedaf1 upstream. Since the commit c3d98ea0 ("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: c3d98ea0 ("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.comSigned-off-by: NDongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: NJan Kara <jack@suse.cz> Signed-off-by: NFedor Pchelkin <pchelkin@ispras.ru> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Nsanglipeng <sanglipeng1@jd.com>
Showing
想要评论请 注册 或 登录