X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=mm%2Fhighmem.c;h=4f942678e9da22cbe532a631d33a6c796fe5f4e2;hb=719f7d1edcf0f677e646b3a2b51b4892496804fc;hp=1f0c8a52fd80723d0fde087982fa363d716b4055;hpb=1fac747392b0badf2e70a869874a4ad237b67649;p=mirror_ubuntu-jammy-kernel.git diff --git a/mm/highmem.c b/mm/highmem.c index 1f0c8a52fd80..4f942678e9da 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -627,7 +627,7 @@ void __kmap_local_sched_out(void) /* With debug all even slots are unmapped and act as guard */ if (IS_ENABLED(CONFIG_DEBUG_KMAP_LOCAL) && !(i & 0x01)) { - WARN_ON_ONCE(!pte_none(pteval)); + WARN_ON_ONCE(pte_val(pteval) != 0); continue; } if (WARN_ON_ONCE(pte_none(pteval))) @@ -664,7 +664,7 @@ void __kmap_local_sched_in(void) /* With debug all even slots are unmapped and act as guard */ if (IS_ENABLED(CONFIG_DEBUG_KMAP_LOCAL) && !(i & 0x01)) { - WARN_ON_ONCE(!pte_none(pteval)); + WARN_ON_ONCE(pte_val(pteval) != 0); continue; } if (WARN_ON_ONCE(pte_none(pteval)))