Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18699739 authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by Ingo Molnar
Browse files

x86/mm/cpa/selftest: Fix false positive in CPA self test



If the pmd is not present, _PAGE_PSE will not be set anymore.
Fix the false positive.

Reported-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
Cc: Stefan Bader <stefan.bader@canonical.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1365687369-30802-1-git-send-email-aarcange@redhat.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent f76cfa3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ static int print_split(struct split_state *s)
			s->gpg++;
			i += GPS/PAGE_SIZE;
		} else if (level == PG_LEVEL_2M) {
			if (!(pte_val(*pte) & _PAGE_PSE)) {
			if ((pte_val(*pte) & _PAGE_PRESENT) && !(pte_val(*pte) & _PAGE_PSE)) {
				printk(KERN_ERR
					"%lx level %d but not PSE %Lx\n",
					addr, level, (u64)pte_val(*pte));