]> git.ipfire.org Git - people/arne_f/kernel.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>
Wed, 5 Feb 2020 14:18:14 +0000 (14:18 +0000)
commit4397069f236d9d9888f23c0ed814c403f80bfd1c
treed864b03495517f02cbb8b7c878a46493344fd35b
parent569ae81e2ed8eab6c3b99d7364ef129f8c21f193
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