Message ID | 20231106110336.358-43-philmd@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4467C182DF for <kvm@vger.kernel.org>; Mon, 6 Nov 2023 11:08:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MfJs3QM8" Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B3798 for <kvm@vger.kernel.org>; Mon, 6 Nov 2023 03:08:28 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-408382da7f0so32558925e9.0 for <kvm@vger.kernel.org>; Mon, 06 Nov 2023 03:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699268906; x=1699873706; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bC2TdykjktUVtXbtq0twsr6zjowOcVE1/YbXmtopUl4=; b=MfJs3QM8TxrTXfQDIFKLKw7vTkX6L5gCSSFge+xeD+nfsQrF6jt6/VjZ+XLxgj/5AU ouM5VSUdyr732rEOG+4ojTNwq2t4usiaJ1wUnrJwiS401uxJzIF3TG3B/tio1XfNr0vn xJumv1hn33SAR9dQNZqlFUpJX32gNLnPOKRoxCmPd4FhK7FrKzQkiTOanS6BA9W98xAM mxXy4s0s2MqHZQ8+8/uSQZVXoJwaTKVWE85chr9WDX/rl4ZZARwVTBpxPJYi1RQMducv ructVHZu0JJKbpnWRR40PEJezDmCntD40vpuse641OctOEF3rG7I0ODcOOiA89Seru6P pQdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699268906; x=1699873706; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bC2TdykjktUVtXbtq0twsr6zjowOcVE1/YbXmtopUl4=; b=c2okrl/lhyQPywv7qlRnGrVIqlex7n1A0rnBn2NF7/isVVRdNh/tpaf5zVHzF61Mxp unODyG8vGAoeAk4DuefdGd22c7fCnvg5oCSOtJS8JEj1W/4kRE7+RRaqHkrZcBEQ47NM XQeo+QDaWsR4gRVt0TFJneDmES0vDGlEtP8iiZlBDQPeC2jPW7eI1lkspSlq50Bzaxvk iLTsZ96IQzOhbpBkPKRciX1Je9XwRcmHCMz/dvnl3JPL051wvka27hAI/W+SQsT0yQ5/ rEt4PoYqyMPbFpUvfowrHbaXerXBn+JpZjnGJwV7lb5BYiTEXSnJtVHnk9FQxURq+or+ +bFg== X-Gm-Message-State: AOJu0Yy3/pulqMgERbVSHhv/GkDYIXt+Fxf2EZNB4uwuPv3iRh5dAQAv PsDI7oVzwy6vI35UzUMmxYI64w== X-Google-Smtp-Source: AGHT+IHcL9WmfBoUy68GkAigOFElgUltPcHFMGDZ3RNZRT8AFGVHPWLoneY5rupalCL7WjqSCGEKUA== X-Received: by 2002:a5d:62cd:0:b0:32c:c35c:2eea with SMTP id o13-20020a5d62cd000000b0032cc35c2eeamr17839736wrv.6.1699268906698; Mon, 06 Nov 2023 03:08:26 -0800 (PST) Received: from m1x-phil.lan (176-131-220-199.abo.bbox.fr. [176.131.220.199]) by smtp.gmail.com with ESMTPSA id m1-20020a056000180100b0031980783d78sm9136370wrh.54.2023.11.06.03.08.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 06 Nov 2023 03:08:26 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Bernhard Beschow <shentey@gmail.com>, Markus Armbruster <armbru@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Herv=C3=A9_Pous?= =?utf-8?q?sineau?= <hpoussin@reactos.org> Subject: [PULL 42/60] hw/isa/i82378: Propagate error if PC_SPEAKER device creation failed Date: Mon, 6 Nov 2023 12:03:14 +0100 Message-ID: <20231106110336.358-43-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231106110336.358-1-philmd@linaro.org> References: <20231106110336.358-1-philmd@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: <kvm.vger.kernel.org> List-Subscribe: <mailto:kvm+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:kvm+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
Series |
[PULL,01/60] vl: Free machine list
|
expand
|
diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c index 79ffbb52a0..203b92c264 100644 --- a/hw/isa/i82378.c +++ b/hw/isa/i82378.c @@ -105,7 +105,9 @@ static void i82378_realize(PCIDevice *pci, Error **errp) /* speaker */ pcspk = isa_new(TYPE_PC_SPEAKER); object_property_set_link(OBJECT(pcspk), "pit", OBJECT(pit), &error_fatal); - isa_realize_and_unref(pcspk, isabus, &error_fatal); + if (!isa_realize_and_unref(pcspk, isabus, errp)) { + return; + } /* 2 82C37 (dma) */ isa_create_simple(isabus, "i82374");