qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] acpi: Fix an infinite loop in acpi_table_add


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] acpi: Fix an infinite loop in acpi_table_add
Date: Sat, 9 Oct 2010 09:42:53 +0000

Thanks, applied.

On Tue, Oct 5, 2010 at 12:23 AM, Vincent Minet
<address@hidden> wrote:
> Commit d729bb9a7700e364b1c5f9893d61f07a9e002bce has a typo, causing an
> infinite loop in acpi_table_add.
>
> Signed-off-by: Vincent Minet <address@hidden>
> ---
>  hw/acpi.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/acpi.c b/hw/acpi.c
> index 069e05f..8071e7b 100644
> --- 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) {
> --
> 1.7.3.1
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]