]> git.itanic.dy.fi Git - linux-stable/commit
reiserfs: Fix memory leak of journal device string
authorJan Kara <jack@suse.cz>
Thu, 12 Dec 2019 10:30:03 +0000 (11:30 +0100)
committerJan Kara <jack@suse.cz>
Mon, 16 Dec 2019 11:59:32 +0000 (12:59 +0100)
commit5474ca7da6f34fa95e82edc747d5faa19cbdfb5c
tree011451e3cc0db5960a1a5d8f2093b3d3ea5475c4
parent34e92542da964304f41f97deee6e34085ad8106b
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: c3aa077648e1 ("reiserfs: Properly display mount options in /proc/mounts")
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/super.c