From patchwork Tue Oct 5 00:23:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Minet X-Patchwork-Id: 66748 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A379DB6EFF for ; Tue, 5 Oct 2010 11:24:50 +1100 (EST) Received: from localhost ([127.0.0.1]:46169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2vKo-0001zm-5L for incoming@patchwork.ozlabs.org; Mon, 04 Oct 2010 20:24:46 -0400 Received: from [140.186.70.92] (port=55191 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2vJc-0001fZ-2A for qemu-devel@nongnu.org; Mon, 04 Oct 2010 20:23:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2vJa-0004Uj-Vk for qemu-devel@nongnu.org; Mon, 04 Oct 2010 20:23:31 -0400 Received: from mail.didaction.com ([87.98.175.59]:58314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2vJa-0004U9-Rc for qemu-devel@nongnu.org; Mon, 04 Oct 2010 20:23:30 -0400 Received: from portablevm.vincent-minet.net (pha75-6-82-226-33-187.fbx.proxad.net [82.226.33.187]) by mail.didaction.com (Postfix) with ESMTPSA id 2C96424047 for ; Tue, 5 Oct 2010 02:23:25 +0200 (CEST) From: Vincent Minet To: qemu-devel@nongnu.org Date: Tue, 5 Oct 2010 02:23:12 +0200 Message-Id: <1286238192-7265-1-git-send-email-vincent@vincent-minet.net> X-Mailer: git-send-email 1.7.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] acpi: Fix an infinite loop in acpi_table_add X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Commit d729bb9a7700e364b1c5f9893d61f07a9e002bce has a typo, causing an infinite loop in acpi_table_add. Signed-off-by: Vincent Minet Acked-by: Jes Sorensen --- 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) {