From nobody Wed May 15 10:22:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1644583426; cv=none; d=zohomail.com; s=zohoarc; b=Ev8MkHfjMwiNN1ysiklGIjYFNdRKLsWzOTNuyvCeNihmdgUUNhyn6V0miYT17x7MDK2AQJ6hX/hboQ2t44wOjZeg+2/nxtk1R2w/2YkErCVs6I+yOOAuzMtOC+gCac6tXnoS19syd7zMl9kM6GE5kXZXsfkBPApqCkT/pLVOivc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644583426; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=4YMSEhi+MqCvoEzHobpmald4FEHG8YOkTpxShuKZZlc=; b=Drq0Fbbz7qIUzg24q1FveRXnMgjKujZckCQN3p92dpy0i5Ai1MY2Fxg4/oou+SuQQvFHbwn/SWcDhTf/d8NgtNjZY2EHCZ9Ma6CRvpks3K8s1OO28BvJeJASMVQpzQJCQmI65+HfGNEB8uHj9ukZ04pxaByKiBaYoJ4u6wOlwzo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 16445834265551022.1895941743969; Fri, 11 Feb 2022 04:43:46 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-270-cfoREakUO6CJanAf94Ae6g-1; Fri, 11 Feb 2022 07:43:42 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 063EE1F2DB; Fri, 11 Feb 2022 12:43:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1EA651038ABC; Fri, 11 Feb 2022 12:43:36 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E0F671806D1C; Fri, 11 Feb 2022 12:43:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21BCdIA4009949 for ; Fri, 11 Feb 2022 07:39:18 -0500 Received: by smtp.corp.redhat.com (Postfix) id 587AC6FAEC; Fri, 11 Feb 2022 12:39:18 +0000 (UTC) Received: from rein.int.mamuti.net (unknown [10.40.192.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E0766FAE7 for ; Fri, 11 Feb 2022 12:39:18 +0000 (UTC) Received: by rein.int.mamuti.net (Postfix, from userid 500) id 7D948180154; Fri, 11 Feb 2022 13:39:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644583425; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4YMSEhi+MqCvoEzHobpmald4FEHG8YOkTpxShuKZZlc=; b=KkoFcKcp46tEfjG9espxX59RTMDtVk0rSjeSFBMtG9ic3DPhfqlUt/QskxZ5CNAL8EJAWO rAoEQXTmuRFkwHATEgFeCj8V29O3GPptheuh5d+P9KVUKdXQUz2bVcj16Kpj1W1xXq7hsD 9LzQXhOQ5/4Naxgy750ELgQ90Kv+KuU= X-MC-Unique: cfoREakUO6CJanAf94Ae6g-1 From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH] conf: Initialize devAddr in virNodeDeviceGetPCIVPDDynamicCap Date: Fri, 11 Feb 2022 13:39:15 +0100 Message-Id: <1beaf5b9317503f8abea5869c64dea341c40d0b1.1644583155.git.jdenemar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1644583427492100001 Content-Type: text/plain; charset="utf-8" Otherwise devAddr.multi would be uninitialized. Signed-off-by: Jiri Denemark Reviewed-by: Michal Privoznik --- src/conf/node_device_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 61c8715037..eaa42c05ee 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -3018,7 +3018,7 @@ static int virNodeDeviceGetPCIVPDDynamicCap(virNodeDevCapPCIDev *devCapPCIDev) { g_autoptr(virPCIDevice) pciDev =3D NULL; - virPCIDeviceAddress devAddr; + virPCIDeviceAddress devAddr =3D {0}; g_autoptr(virPCIVPDResource) res =3D NULL; =20 devAddr.domain =3D devCapPCIDev->domain; --=20 2.35.0