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