]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MIPS: mm: Add check for highmem before removing memory block
authorKyle Hendry <kylehendrydev@gmail.com>
Sun, 21 Jun 2026 18:47:02 +0000 (11:47 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 29 Jun 2026 09:34:57 +0000 (11:34 +0200)
commit6d5fbecd0213489bc4de71a0da194d18e654fd6e
tree88b0c1375f559f8dc779b73470f3a82c4aa15f6f
parenta9e0237d2eb5f1e35f500cfa1a82a242b7c8686c
MIPS: mm: Add check for highmem before removing memory block

If a device has less physical memory than the highmem threshold
bootmem_init() doesn't set highstart_pfn. This results in highmem_init()
wrongly disabling the entire memory range if the cpu doesn't support
highmem. Add a check that highstart_pfn is non zero before removing the
highmem block.

Fixes: f171b55f1441 ("mips: fix HIGHMEM initialization")
Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mm/init.c