* [PATCH] ACPICA: Do memcpy of only allocated tables.
@ 2010-03-18 14:20 Alexey Starikovskiy
0 siblings, 0 replies; only message in thread
From: Alexey Starikovskiy @ 2010-03-18 14:20 UTC (permalink / raw)
To: Len Brown; +Cc: Linux-acpi
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
drivers/acpi/acpica/tbxface.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c
index 5217a61..3cedfb3 100644
--- a/drivers/acpi/acpica/tbxface.c
+++ b/drivers/acpi/acpica/tbxface.c
@@ -194,7 +194,9 @@ acpi_status acpi_reallocate_root_table(void)
return_ACPI_STATUS(AE_NO_MEMORY);
}
- ACPI_MEMCPY(tables, acpi_gbl_root_table_list.tables, new_size);
+ ACPI_MEMCPY(tables, acpi_gbl_root_table_list.tables,
+ acpi_gbl_root_table_list.count *
+ sizeof(struct acpi_table_desc));
acpi_gbl_root_table_list.size = acpi_gbl_root_table_list.count;
acpi_gbl_root_table_list.tables = tables;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-18 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 14:20 [PATCH] ACPICA: Do memcpy of only allocated tables Alexey Starikovskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox