]> www.infradead.org Git - users/dwmw2/linux.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Feb 2020 18:18:02 +0000 (18:18 +0000)
commit8f5561c734b36c0b3089cbb381d8eecbe75ef72c
tree938b3be676ff7d1e617233c8d0c2aade27bf0f0b
parentbc92426ff68b4dfab30920739f8b80a1614fa762
reiserfs: Fix memory leak of journal device string

commit 5474ca7da6f34fa95e82edc747d5faa19cbdfb5c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/reiserfs/super.c