[MIPS] sparsemem: fix crash in show_mem
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 13 Jul 2006 14:01:50 +0000 (23:01 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jul 2006 20:26:22 +0000 (21:26 +0100)
commitf4dee85e2c6a7d7adf7ea4d6d3053a41c78175b7
tree59bb468f05b99adbdbcef01195cff622585a337f
parentbddc8134db00002a9fd1b33fcb45747bdd3a2777
[MIPS] sparsemem: fix crash in show_mem

With sparsemem, pfn should be checked by pfn_valid() before pfn_to_page().

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/pgtable.c