Helge Deller ae249b5fa2 parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50
With CONFIG_DISCONTIGMEM=y and multiple physical memory areas,
cat /proc/kpageflags triggers this kernel bug:

kernel BUG at arch/parisc/include/asm/mmzone.h:50!
CPU: 2 PID: 7848 Comm: cat Tainted: G      D W 3.10.0-rc3-64bit #44
 IAOQ[0]: kpageflags_read0x128/0x238
 IAOQ[1]: kpageflags_read0x12c/0x238
 RP(r2): proc_reg_read0xbc/0x130
Backtrace:
 [<00000000402ca2d4>] proc_reg_read0xbc/0x130
 [<0000000040235bcc>] vfs_read0xc4/0x1d0
 [<0000000040235f0c>] SyS_read0x94/0xf0
 [<0000000040105fc0>] syscall_exit0x0/0x14

kpageflags_read() walks through the whole memory, even if some memory
areas are physically not available. So, we should better not BUG on an
unavailable pfn in pfn_to_nid() but just return the expected value -1 or
0.

Signed-off-by: Helge Deller <deller@gmx.de>
2013-06-01 14:28:35 +02:00
..
2011-07-26 16:49:47 -07:00
2012-06-05 14:10:17 +09:00
2009-01-05 19:11:05 +00:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2011-03-31 11:26:23 -03:00
2013-02-20 22:55:26 +01:00
2013-02-20 22:50:26 +01:00
2009-12-16 03:48:54 +00:00
2013-05-24 23:29:01 +02:00
2009-03-13 01:20:48 -04:00
2010-10-07 14:08:55 +01:00
2012-11-13 15:48:27 -05:00
2012-03-28 18:30:02 +01:00
2011-07-26 16:49:47 -07:00
2012-02-23 20:19:04 -07:00
2012-03-28 18:30:02 +01:00
2009-09-27 23:07:23 -04:00
2012-03-28 18:30:02 +01:00