parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50 (part 2)
authorHelge Deller <deller@gmx.de>
Wed, 5 Jun 2013 20:50:01 +0000 (20:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2013 17:38:43 +0000 (10:38 -0700)
commit549b3750960246aefda940bed50b01b6557f4d15
treeac2879611785870fc13bf4503bf83697d4375a17
parent0bb6948d3d84c1ecea5efc6ac710953a91c9c7c6
parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50 (part 2)

commit 91ea8207168793b365322be3c90a4ee9e8b03ed4 upstream.

Make sure that we really return -1 (instead of 0x00ff) as node id for
page frame numbers which are not physically available.

This finally fixes the kernel panic when running
cat /proc/kpageflags /proc/kpagecount.

Theoretically this patch now limits the number of physical memory ranges
to 127 instead of 254, but currently we have MAX_PHYSMEM_RANGES
hardcoded to 8 which is sufficient for all existing parisc machines.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/mmzone.h
arch/parisc/mm/init.c