mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
acpi: Fix an infinite loop in acpi_table_add
Commit d729bb9a77
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>
This commit is contained in:
parent
10d554c65a
commit
b755a4289e
1 changed files with 1 additions and 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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue