ARM: 5747/1: Fix the start_pg value in free_memmap()
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Oct 2009 16:57:22 +0000 (17:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 7 Oct 2009 12:13:00 +0000 (13:13 +0100)
If sparsemem is enabled, the start_pfn passed to the free_memmap()
function corresponds to an area of memory not known to the kernel and
pfn_to_page returns a wrong value. The (start_pfn - 1), however, is
known to the kernel.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found