Commit 81dedaf
fs: reiserfs: remove useless new_opts in reiserfs_remount
Since the commit c3d98ea ("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: c3d98ea ("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>1 parent e96a186 commit 81dedaf
1 file changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1437 | 1437 | | |
1438 | 1438 | | |
1439 | 1439 | | |
1440 | | - | |
1441 | 1440 | | |
1442 | 1441 | | |
1443 | 1442 | | |
1444 | 1443 | | |
1445 | 1444 | | |
1446 | 1445 | | |
1447 | 1446 | | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | 1447 | | |
1453 | 1448 | | |
1454 | 1449 | | |
| |||
1599 | 1594 | | |
1600 | 1595 | | |
1601 | 1596 | | |
1602 | | - | |
1603 | 1597 | | |
1604 | 1598 | | |
1605 | 1599 | | |
| |||
0 commit comments