ACPI: Fix wrong parameter passed to memblock_reserve
authorWang YanQing <udknight@gmail.com>
Mon, 22 Apr 2013 23:19:19 +0000 (01:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:11 +0000 (20:33 -0700)
commit9c2455efc4aebd7ff3c4b6e834de6f999976209a
treedf0935c605d8d715d844db790259c8dcb5a9d2f8
parent98ab042fedc9817c44d2987d3c4396e053cf45af
ACPI: Fix wrong parameter passed to memblock_reserve

commit a6432ded299726f123b93d0132fead200551535c upstream.

Commit 53aac44 (ACPI: Store valid ACPI tables passed via early initrd
in reserved memblock areas) introduced acpi_initrd_override() that
passes a wrong value as the second argument to memblock_reserve().

Namely, the second argument of memblock_reserve() is the size of the
region, not the address of the top of it, so make
acpi_initrd_override() pass the size in there as appropriate.

[rjw: Changelog]
Signed-off-by: Wang YanQing <udknight@gmail.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/osl.c