From nobody Mon May 16 15:24:43 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AD5A11AE3547; Mon, 16 May 2022 15:24:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L232g34wQz3nVk; Mon, 16 May 2022 15:24:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652714683; h=from:from: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; bh=ZCvpIYniPUKo2lZm1eriInbVPfjL6pMmmzoGOTCZyP4=; b=lUeFtr2xe1VP9+t0uNe/yPEJ4MMzj7n6nJkyQY+yOvBQTfJxbPw1mhbJ+19WVSvHTMffGs 3s5u2Y54uSU6NGasTqS1xjQ8HzDuzhefmhbwxqC/onCvOqKlcNKGRaTaGBF5uvSx/FOfZC xQgRlFHQp/RLR8IuM5DDqqPstGkt21m929u7VzFDt0KKh/7Dc4BT+jBDmBTGzP0x6tW8Df b3UUsof8jbBu16CwsQOMYWiq3rDVVmqLMFrpqzH4edMIHMJrwFJ9lBZlUvFNHynQR/B4Mg zYhVO16DyeMjS3E0YxxtX1K5JQQqL9D5T5jQboVSR87gs09jroEDu+4KHtw2LQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 40C3422953; Mon, 16 May 2022 15:24:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24GFOh1m006631; Mon, 16 May 2022 15:24:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24GFOhW2006630; Mon, 16 May 2022 15:24:43 GMT (envelope-from git) Date: Mon, 16 May 2022 15:24:43 GMT Message-Id: <202205161524.24GFOhW2006630@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 8c119b3b711d - stable/13 - bhyve: avoid uninitialized variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8c119b3b711dc256b97c258e6ca23547a0fffc99 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652714683; h=from:from: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; bh=ZCvpIYniPUKo2lZm1eriInbVPfjL6pMmmzoGOTCZyP4=; b=BYMYK/YnZkMYF2h+dA5Rc2eH0gEwrCkgnWzOePrkylBGyVt0qP4Ecq95cEdBFFjwEVPvfR 1ROwGLA5+cGfxiTCvVP7tx2P3ikdFiKvXrU5TBgDpf6QPPVklk4RTiEpm+YJg95lewTGBs L2rs+I6oa+v9gZ8MUi+v6v4Jp4JFyGKhInE9bknTFv+AAsBRCLALEnTI5kLd6IVIUMLu6j HJJOTd//wxKzZQvA41qL9+dG5pakeRG0Sq73vHqjfLTzMUW6t1Iu7/bnEovw/jdmG0nTxk MuxJA77LFuOE7v0vcAMy47jV4BkH1x8JgkzIIK05GpycQMXCwCzP637LwtgY5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652714683; a=rsa-sha256; cv=none; b=cRkvWU43w5FTarLZ93GbqNjSb1BAzC6fgOtnHbQJ0JGR3ZX4RyIMXNwyaPVUvE7fC/S+87 69/bCqoO11/Yt45Cykevit//GUO2soFnKuwWaSBVrysLhAtC1cmePvIOqbpHyJq4NJhd+I IG6yi61KJSLqwFSBzlYWaJ/glTcuTlcQWznKdyRYfNXhGLOC2bsqxSM9aHr1qckSPLn9FM w5oKkRdwYFHufNjqlAhQzEC7Gr/KhC6dtkaX2XklJAy3iw2jHAGVbyD2g2Af4iB6pio6ae EttotjEjrlVvxmDmwZOD7c1Pr67CaXK6jnnIETQxsiWK+IEcZywJCF49riUPvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=8c119b3b711dc256b97c258e6ca23547a0fffc99 commit 8c119b3b711dc256b97c258e6ca23547a0fffc99 Author: Corvin Köhne AuthorDate: 2022-04-01 08:19:53 +0000 Commit: Emmanuel Vadot CommitDate: 2022-05-16 15:24:33 +0000 bhyve: avoid uninitialized variable Reviewed by: markj Signed-off-by: Corvin Köhne Reported-by: Andy Fiddaman Differential Revision: https://reviews.freebsd.org/D34688 (cherry picked from commit 8ac8adda8dbaceebd296e4fd7df36b7a8db7f6d3) --- usr.sbin/bhyve/pci_emul.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c index 8cadc0580311..b58a51bce78b 100644 --- a/usr.sbin/bhyve/pci_emul.c +++ b/usr.sbin/bhyve/pci_emul.c @@ -825,6 +825,8 @@ pci_emul_assign_bar(struct pci_devinst *const pdi, const int idx, error = pci_emul_alloc_resource(baseptr, limit, size, &addr); if (error != 0) return (error); + } else { + addr = 0; } pdi->pi_bar[idx].type = type;