Commit 25ce7396 authored by Huang Pei's avatar Huang Pei Committed by Zheng Zengkai
Browse files

MIPS: check return value of pgtable_pmd_page_ctor

stable inclusion
from stable-5.10.58
commit f93b7b0000444e006e0bef52366d2e604faa50a9
bugzilla: 176984 https://gitee.com/openeuler/kernel/issues/I4E2P4

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



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

[ Upstream commit 6aa32467 ]

+. According to Documentation/vm/split_page_table_lock, handle failure
of pgtable_pmd_page_ctor

+. Use GFP_KERNEL_ACCOUNT instead of GFP_KERNEL|__GFP_ACCOUNT

+. Adjust coding style

Fixes: ed914d48 ("MIPS: add PMD table accounting into MIPS')
Reported-by: default avatarJoshua Kinard <kumba@gentoo.org>
Signed-off-by: default avatarHuang Pei <huangpei@loongson.cn>
Reviewed-by: default avatarJoshua Kinard <kumba@gentoo.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 8c1acbd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment