mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
x86: cpa: fix split thinko
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
3c1df68b84
commit
a72a08a4b6
@ -216,8 +216,12 @@ repeat:
|
||||
prot = static_protections(prot, address);
|
||||
|
||||
if (level == PG_LEVEL_4K) {
|
||||
WARN_ON_ONCE(pgprot_val(prot) & _PAGE_PSE);
|
||||
set_pte_atomic(kpte, pfn_pte(pfn, canon_pgprot(prot)));
|
||||
} else {
|
||||
/* Clear the PSE bit for the 4k level pages ! */
|
||||
pgprot_val(prot) = pgprot_val(prot) & ~_PAGE_PSE;
|
||||
|
||||
err = split_large_page(kpte, address);
|
||||
if (!err)
|
||||
goto repeat;
|
||||
|
Loading…
Reference in New Issue
Block a user