Repository navigation
Commit 5474ca7
committed
reiserfs: Fix memory leak of journal device string
When a filesystem is mounted with jdev mount option, we store the
journal device name in an allocated string in superblock. However we
fail to ever free that string. Fix it.
Reported-by: syzbot+1c6756baf4b16b94d2a6@syzkaller.appspotmail.com
Fixes: c3aa077 ("reiserfs: Properly display mount options in /proc/mounts")
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>1 parent 34e9254 commit 5474ca7
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
| |||
2240 | 2241 | | |
2241 | 2242 | | |
2242 | 2243 | | |
| 2244 | + | |
2243 | 2245 | | |
2244 | 2246 | | |
2245 | 2247 | | |
| |||
0 commit comments