From nobody Fri Apr 01 09:19:42 2022 X-Original-To: dev-commits-src-main@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 94FD41A44B00; Fri, 1 Apr 2022 09:19:42 +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 4KVF4G2ggBz3FlV; Fri, 1 Apr 2022 09:19:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648804782; 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=qJHR7TihqiLepp67x74tc0P66vYeoXzsahBqtyhAhMU=; b=Unh5ds9CdnfthF+16fAgyYw6bEkRZ0HtrO8+kgr069z3hgSE17Vz09KGyilteNxkkIMfBV 0l7zXwZVZ7sjOOrVS0vtuQtPI9JeGMssqbrp4keMJZ/zFnGJhiomvR2e7VkzEZzQz2xJYl H/TPAfnzYue2xGcDn8K9VWMvTrErfjYsXToW/72xSGzdbaXZ/W+j578BgoPfwMFFop4zN6 PCxpoOMOASOaI2l2OcTvo0haqPOA9+fZ33uJFkzqDoL8KJC/ouW87ZrQxacWia73F4wc6d KvdTdm2RRGvQmt8EIXqQs+/QAj6wkr5SPpXV39qOYfjH4CJ5pz7CN4MeCJUh2Q== 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 33C1D11BB9; Fri, 1 Apr 2022 09:19:42 +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 2319Jgai091581; Fri, 1 Apr 2022 09:19:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2319Jgb3091580; Fri, 1 Apr 2022 09:19:42 GMT (envelope-from git) Date: Fri, 1 Apr 2022 09:19:42 GMT Message-Id: <202204010919.2319Jgb3091580@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 8ac8adda8dba - main - bhyve: avoid uninitialized variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 8ac8adda8dbaceebd296e4fd7df36b7a8db7f6d3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648804782; 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=qJHR7TihqiLepp67x74tc0P66vYeoXzsahBqtyhAhMU=; b=UCSHiD1CPcsgSSmh5ckQ1+eaaaSk5Sjy1NowzB5LcArPZjRvSmSs3qhyCakZhEKIzJTFSU d3cJy8F1B8X6Ccm3K2yUpud/4eV9DYIq6zUWatMaTQ5+3DeNOt6X5WbA6I2lGMSMbRE0vz m9XRJFoZxalwnmRs99D1I/4YCi0gyr3/uaZntLcnQZhp7Z9cvDf9cxT779f/NASo4+5lmw fw2BKNJXjVEJ84eEtQs32d1WX0+QG5dvIph4vawNXt2/5OdqATzO9EBlyM3UEM5nAyT0x2 azZc0stvgqoRu50A88LMljKUkZsYnlHi96fd6w6OzFQCxxWjZtHl6AvX6zRsUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648804782; a=rsa-sha256; cv=none; b=SBGh1gvLlZO8FWlwLDQYDihHMYkYgWOkAq1YqObvyDL59EoN9Roc0TmYstfgJKePyeiUYt C6c8gN4kQUayR8AIxdZ5ax9XiRmW9V5O7YEcPYoMvjvKB+SZ3t+38UX20TBdjWi/5bevdA uQQI6iiuftPVwCi/PFwMUdqP4OFBPn8JGtVPfyvw0UumJPfcCSxjQw6Bb1lGpUypSktB81 zPxd86s8fLtunnae0UathHVL5trAx/z8KBCWX92fS2VKDkETcCEBp00V42qzLnn4L45nyi 5zXPYlTlvXO3GmjkoYcZexyZUAG30tqacqMoac9vfrOXu3FgMkb+epkeH7MFAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=8ac8adda8dbaceebd296e4fd7df36b7a8db7f6d3 commit 8ac8adda8dbaceebd296e4fd7df36b7a8db7f6d3 Author: Corvin Köhne AuthorDate: 2022-04-01 08:19:53 +0000 Commit: Emmanuel Vadot CommitDate: 2022-04-01 09:13:16 +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 --- 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 ab90c01c2394..9bcd3223007a 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;