diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-20 07:35:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-20 07:35:16 -0800 |
commit | 1d51b4b1d3f2db0d6d144175e31a84e472fbd99a (patch) | |
tree | 9575f8872b09620393a1d6c4ed26a2ef3bce57a2 /arch/m68k/mm | |
parent | c0f3ece4657fe2205c1e59c5c27547d6e8cba34a (diff) | |
parent | bed1369f51901b17108a4bb4f7210aab183bea42 (diff) | |
download | linux-1d51b4b1d3f2db0d6d144175e31a84e472fbd99a.tar.gz linux-1d51b4b1d3f2db0d6d144175e31a84e472fbd99a.tar.bz2 linux-1d51b4b1d3f2db0d6d144175e31a84e472fbd99a.zip |
Merge tag 'm68k-for-v4.20-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
Pull m68k fix from Geert Uytterhoeven:
"Fix memblock-related crashes"
* tag 'm68k-for-v4.20-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
m68k: Fix memblock-related crashes
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r-- | arch/m68k/mm/motorola.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c index 7497cf30bf1c..3f3d0bf36091 100644 --- a/arch/m68k/mm/motorola.c +++ b/arch/m68k/mm/motorola.c @@ -228,6 +228,7 @@ void __init paging_init(void) min_addr = m68k_memory[0].addr; max_addr = min_addr + m68k_memory[0].size; + memblock_add(m68k_memory[0].addr, m68k_memory[0].size); for (i = 1; i < m68k_num_memory;) { if (m68k_memory[i].addr < min_addr) { printk("Ignoring memory chunk at 0x%lx:0x%lx before the first chunk\n", @@ -238,6 +239,7 @@ void __init paging_init(void) (m68k_num_memory - i) * sizeof(struct m68k_mem_info)); continue; } + memblock_add(m68k_memory[i].addr, m68k_memory[i].size); addr = m68k_memory[i].addr + m68k_memory[i].size; if (addr > max_addr) max_addr = addr; |