diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2024-02-02 03:11:07 -0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-02 03:11:07 -0800 |
commit | 349bd87f6091ac68b8eab368ce30bcaf6d45c50e (patch) | |
tree | f3b65442c181a4c2d52a070fcfa22e70ef9b5711 /mm | |
parent | 96204e15310c218fd9355bdcacd02fed1d18070e (diff) | |
parent | 41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff) | |
download | linux-stable-349bd87f6091ac68b8eab368ce30bcaf6d45c50e.tar.gz linux-stable-349bd87f6091ac68b8eab368ce30bcaf6d45c50e.tar.bz2 linux-stable-349bd87f6091ac68b8eab368ce30bcaf6d45c50e.zip |
Merge branch 'master' into mm-hotfixes-stable
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memblock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index abd92869874d..4dcb2ee35eca 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -2176,6 +2176,9 @@ static void __init memmap_init_reserved_pages(void) start = region->base; end = start + region->size; + if (nid == NUMA_NO_NODE || nid >= MAX_NUMNODES) + nid = early_pfn_to_nid(PFN_DOWN(start)); + reserve_bootmem_region(start, end, nid); } } |