From patchwork Mon Dec 14 11:08:58 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 41084 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 347B6B6F14 for ; Mon, 14 Dec 2009 22:11:18 +1100 (EST) Received: from localhost ([127.0.0.1]:36154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NK8pe-0005xo-Vj for incoming@patchwork.ozlabs.org; Mon, 14 Dec 2009 06:11:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NK8ni-0004qx-65 for qemu-devel@nongnu.org; Mon, 14 Dec 2009 06:09:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NK8nd-0004mK-5z for qemu-devel@nongnu.org; Mon, 14 Dec 2009 06:09:13 -0500 Received: from [199.232.76.173] (port=39036 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NK8nc-0004m8-RD for qemu-devel@nongnu.org; Mon, 14 Dec 2009 06:09:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10252) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NK8nc-0001PX-DI for qemu-devel@nongnu.org; Mon, 14 Dec 2009 06:09:08 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBEB97fe001727 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Dec 2009 06:09:07 -0500 Received: from zweiblum.home.kraxel.org (vpn1-6-28.ams2.redhat.com [10.36.6.28]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBEB96Bh016426; Mon, 14 Dec 2009 06:09:07 -0500 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id A306870FB4; Mon, 14 Dec 2009 12:09:02 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 14 Dec 2009 12:08:58 +0100 Message-Id: <1260788938-20864-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH] Check rom_load_all() return value. 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 ... otherwise we'll continue without the bios loaded in case the option roms don't fit. Signed-off-by: Gerd Hoffmann --- vl.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index c0d98f5..1682808 100644 --- a/vl.c +++ b/vl.c @@ -6031,7 +6031,10 @@ int main(int argc, char **argv, char **envp) qdev_machine_creation_done(); - rom_load_all(); + if (rom_load_all() != 0) { + fprintf(stderr, "rom loading failed\n"); + exit(1); + } qemu_system_reset(); if (loadvm) {