Skip to content
Snippets Groups Projects
Commit 8e73a663 authored by Jan Kara's avatar Jan Kara Committed by Cheng Jian
Browse files

quota: Fix memory leak when handling corrupted quota file


mainline inclusion
from mainline-v5.12-rc1
commit a4db1072e1a3bd7a8d9c356e1902b13ac5deb8ef
category: bugfix
bugzilla: 49668
CVE: NA

---------------------------

When checking corrupted quota file we can bail out and leak allocated
info structure. Properly free info structure on error return.

Reported-by: default avatar <syzbot+77779c9b52ab78154b08@syzkaller.appspotmail.com>
Fixes: 11c514a99bb9 ("quota: Sanity-check quota file headers on load")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 863c8295
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment