From patchwork Fri Feb 27 01:14:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 444110 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0969B14012A for ; Fri, 27 Feb 2015 12:16:08 +1100 (AEDT) Received: from localhost ([::1]:33382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR9X9-0007Rq-QU for incoming@patchwork.ozlabs.org; Thu, 26 Feb 2015 20:16:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR9Wl-0006nb-B6 for qemu-devel@nongnu.org; Thu, 26 Feb 2015 20:15:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR9Wg-000668-9z for qemu-devel@nongnu.org; Thu, 26 Feb 2015 20:15:39 -0500 Received: from e39.co.us.ibm.com ([32.97.110.160]:47156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR9Wg-00065e-1T for qemu-devel@nongnu.org; Thu, 26 Feb 2015 20:15:34 -0500 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Feb 2015 18:15:32 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 26 Feb 2015 18:15:30 -0700 Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 8B07319D8026; Thu, 26 Feb 2015 18:06:38 -0700 (MST) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1R1DnXR13303834; Thu, 26 Feb 2015 18:13:57 -0700 Received: from d03av01.boulder.ibm.com (localhost [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1R1EvID004604; Thu, 26 Feb 2015 18:14:57 -0700 Received: from localhost (morrigu.austin.ibm.com [9.41.105.45]) by d03av01.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t1R1EuvV003461; Thu, 26 Feb 2015 18:14:56 -0700 From: Michael Roth To: qemu-devel@nongnu.org Date: Thu, 26 Feb 2015 19:14:12 -0600 Message-Id: <1424999652-14539-1-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.1 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15022701-0033-0000-0000-000003CEF156 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 32.97.110.160 Cc: qemu-ppc@nongnu.org, agraf@suse.de, armbru@redhat.com Subject: [Qemu-devel] [PATCH] spapr: fix potential segfault due to uninitialized Error* X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Introduced by 361f93e. Signed-off-by: Michael Roth Reviewed-by: Markus Armbruster --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index e1e66f2..2152704 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -111,7 +111,7 @@ sPAPREnvironment *spapr; static XICSState *try_create_xics(const char *type, int nr_servers, int nr_irqs, Error **errp) { - Error *err; + Error *err = NULL; DeviceState *dev; dev = qdev_create(NULL, type);