]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: Fix memory leak in reiserfs_parse_options()
authorJan Kara <jack@suse.cz>
Wed, 4 Mar 2020 13:01:44 +0000 (14:01 +0100)
committerJan Kara <jack@suse.cz>
Fri, 28 Aug 2020 15:11:53 +0000 (17:11 +0200)
commit0331bb084834d873663176a89592fa31e6b6659e
tree9c185b418e25b9dbb1118bba75d13fc9c78b5016
parentf41a9931c23a890088a92776c190c81c98efc23c
reiserfs: Fix memory leak in reiserfs_parse_options()

When a usrjquota or grpjquota mount option is used multiple times, we
will leak memory allocated for the file name. Make sure the last setting
is used and all the previous ones are properly freed.

Reported-by: syzbot+c9e294bbe0333a6b7640@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/super.c