hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/mm/mmu.c
....@@ -421,7 +421,7 @@
421421 static void __init create_mapping_noalloc(phys_addr_t phys, unsigned long virt,
422422 phys_addr_t size, pgprot_t prot)
423423 {
424
- if ((virt >= PAGE_END) && (virt < VMALLOC_START)) {
424
+ if (virt < PAGE_OFFSET) {
425425 pr_warn("BUG: not creating mapping for %pa at 0x%016lx - outside kernel range\n",
426426 &phys, virt);
427427 return;
....@@ -448,7 +448,7 @@
448448 static void update_mapping_prot(phys_addr_t phys, unsigned long virt,
449449 phys_addr_t size, pgprot_t prot)
450450 {
451
- if ((virt >= PAGE_END) && (virt < VMALLOC_START)) {
451
+ if (virt < PAGE_OFFSET) {
452452 pr_warn("BUG: not updating mapping for %pa at 0x%016lx - outside kernel range\n",
453453 &phys, virt);
454454 return;