diff options
author | Vincent Minet <vincent@vincent-minet.net> | 2010-10-05 02:23:12 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-09 08:19:16 +0000 |
commit | b755a4289ea6ab881c63b52c4f7f849edd93a232 (patch) | |
tree | cb36ff903c1e3cbbfd3d43bc902fd9c0617c2f81 /hw | |
parent | 10d554c65a1dbb4dc8cf87f1119883aa1b27cef4 (diff) |
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')
-rw-r--r-- | hw/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |