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:Joshua Kinard <kumba@gentoo.org> Signed-off-by:
Huang Pei <huangpei@loongson.cn> Reviewed-by:
Joshua Kinard <kumba@gentoo.org> Signed-off-by:
Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment