[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130416014411.GA14671@udknight>
Date: Tue, 16 Apr 2013 09:44:11 +0800
From: Wang YanQing <udknight@...il.com>
To: rafael.j.wysocki@...el.com
Cc: yinghai@...nel.org, linux-kernel@...r.kernel.org
Subject: [PATCH]drivers:acpi: Fix wrong parameter passed to memblock_reserve
The parameter of memblock_reserve is start address,
and size, not address range.
Signed-off-by: Wang YanQing <udknight@...il.com>
---
drivers/acpi/osl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 586e7e9..bcb7a3b 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -641,7 +641,7 @@ void __init acpi_initrd_override(void *data, size_t size)
* Both memblock_reserve and e820_add_region (via arch_reserve_mem_area)
* works fine.
*/
- memblock_reserve(acpi_tables_addr, acpi_tables_addr + all_tables_size);
+ memblock_reserve(acpi_tables_addr, all_tables_size);
arch_reserve_mem_area(acpi_tables_addr, all_tables_size);
p = early_ioremap(acpi_tables_addr, all_tables_size);
--
1.7.12.4.dirty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists