acpi: fix file size check with -acpitable.
commitd729bb9a7700e364b1c5f9893d61f07a9e002bce
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 28 Jul 2010 23:08:42 +0000 (28 23:08 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 30 Aug 2010 20:06:35 +0000 (30 20:06 +0000)
treeb1344d5d36fb7b3b75365151436212333cc48c25
parent02a89b219039621c940863aa5a9da4fec81a1546
acpi: fix file size check with -acpitable.

acpi table file can be modified during load so file size check
should be more strict.
pointer calculation should be after qemu_realloc(). not before realloc().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/acpi.c