]> www.infradead.org Git - users/jedix/linux-maple.git/commit
m68k: mm: Fix systems with memory at end of 32-bit address space
authorKars de Jong <jongk@linux-m68k.org>
Thu, 23 Feb 2023 11:23:49 +0000 (12:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:16 +0000 (12:49 +0200)
commit4ee33bfaeb3f0343f1be8f0adfab1ce2fc25f2dd
tree863c74073aca4a154cd4f55d0424dba877fdbfee
parent0a594cb490ca6232671fc09e2dc1a0fc7ccbb0b5
m68k: mm: Fix systems with memory at end of 32-bit address space

[ Upstream commit 0d9fad91abfd723ea5070a46d98a9f4496c93ba9 ]

The calculation of end addresses of memory chunks overflowed to 0 when
a memory chunk is located at the end of 32-bit address space.
This is the case for the HP300 architecture.

Link: https://lore.kernel.org/linux-m68k/CACz-3rhUo5pgNwdWHaPWmz+30Qo9xCg70wNxdf7o5x-6tXq8QQ@mail.gmail.com/
Signed-off-by: Kars de Jong <jongk@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20230223112349.26675-1-jongk@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/m68k/mm/motorola.c