]> git.proxmox.com Git - mirror_qemu.git/commitdiff
acpi: Fix an infinite loop in acpi_table_add
authorVincent Minet <vincent@vincent-minet.net>
Tue, 5 Oct 2010 00:23:12 +0000 (02:23 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 9 Oct 2010 08:19:16 +0000 (08:19 +0000)
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>
hw/acpi.c

index 069e05fc7a8274120e5d432daa55135b9725e308..8071e7bebaf67cb312fe05b88231f8e9a02f97b3 100644 (file)
--- 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) {