提交 b755a428 编写于 作者: V Vincent Minet 提交者: Blue Swirl

acpi: Fix an infinite loop in acpi_table_add

Commit d729bb9a has a typo, causing an
infinite loop in acpi_table_add.
Signed-off-by: NVincent Minet <vincent@vincent-minet.net>
Acked-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 10d554c6
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册