Commit c2efdfab authored by Chengguang Xu's avatar Chengguang Xu Committed by Baokun Li
Browse files

quota: code cleanup for __dquot_alloc_space()

stable inclusion
from stable-v4.19.311
commit d9e4ab12b60a49204435102f8120c0d3e62583f1
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9HJX7
CVE: CVE-2024-26878

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d9e4ab12b60a49204435102f8120c0d3e62583f1



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

[ Upstream commit df15a2a5 ]

Replace (flags & DQUOT_SPACE_RESERVE) with
variable reserve.

Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Stable-dep-of: 179b8c97ebf6 ("quota: Fix rcu annotations of inode dquot pointers")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
parent 5d7f26cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment