Skip to content
Commit 5e709827 authored by Ray Lehtiniemi's avatar Ray Lehtiniemi Committed by Russell King
Browse files

[ARM] 3927/1: Allow show_mem() to work with holes in memory map.



show_mem() was not correctly handling holes in the memory
map.  It was treating the freed sections of the map as
though they contained valid struct page entries.  This
could cause incorrect debugging output or even a kernel
panic.

This patch keeps the struct meminfo around after system
initialization so that show_mem() can use it when
scanning memory.  show_mem() now walks over each bank
of each online node, rather than assuming that each node
contains a single contiguous bank.

Signed-off-by: default avatarRay Lehtiniemi <rayl@mail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 6d15cb42
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment