From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Gerd Hoffmann Date: Mon, 14 Dec 2009 12:08:58 +0100 Message-Id: <1260788938-20864-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] Check rom_load_all() return value. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann ... 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) { -- 1.6.5.2