aboutsummaryrefslogtreecommitdiff
path: root/hw/acpi.c
diff options
context:
space:
mode:
authorVincent Minet <vincent@vincent-minet.net>2010-10-05 02:23:12 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-09 08:19:16 +0000
commitb755a4289ea6ab881c63b52c4f7f849edd93a232 (patch)
treecb36ff903c1e3cbbfd3d43bc902fd9c0617c2f81 /hw/acpi.c
parent10d554c65a1dbb4dc8cf87f1119883aa1b27cef4 (diff)
downloadqemu-b755a4289ea6ab881c63b52c4f7f849edd93a232.zip
qemu-b755a4289ea6ab881c63b52c4f7f849edd93a232.tar.gz
qemu-b755a4289ea6ab881c63b52c4f7f849edd93a232.tar.bz2
acpi: Fix an infinite loop in acpi_table_add
Commit d729bb9a7700e364b1c5f9893d61f07a9e002bce has a typo, causing an infinite loop in acpi_table_add. Signed-off-by: Vincent Minet <vincent@vincent-minet.net> Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/acpi.c')
-rw-r--r--hw/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index 069e05f..8071e7b 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -161,7 +161,7 @@ int acpi_table_add(const char *t)
/* off < length is necessary because file size can be changed
under our foot */
- while(s.st_size && off < length); {
+ while(s.st_size && off < length) {
int r;
r = read(fd, p + off, s.st_size);
if (r > 0) {