]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: check return value of pgtable_pmd_page_ctor
authorHuang Pei <huangpei@loongson.cn>
Wed, 21 Jul 2021 09:30:45 +0000 (17:30 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 5 Aug 2021 09:45:42 +0000 (11:45 +0200)
commitd25a2b66852414febe74c8e54c5a47c210ed12c9
treea95ed608d3689256e1ca2e12a950aeb0a7e99f0e
parentb1b49cbcf8bd66059ed6f80c573a7ff83991d8ef
MIPS: check return value of pgtable_pmd_page_ctor

+. 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: f157f1d54f57 ("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>
arch/mips/include/asm/pgalloc.h