mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 10:31:18 +00: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
@ -161,7 +161,7 @@ int acpi_table_add(const char *t)
|
|||||||
|
|
||||||
/* off < length is necessary because file size can be changed
|
/* off < length is necessary because file size can be changed
|
||||||
under our foot */
|
under our foot */
|
||||||
while(s.st_size && off < length); {
|
while(s.st_size && off < length) {
|
||||||
int r;
|
int r;
|
||||||
r = read(fd, p + off, s.st_size);
|
r = read(fd, p + off, s.st_size);
|
||||||
if (r > 0) {
|
if (r > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user