From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7775C433EF for ; Sun, 3 Apr 2022 10:40:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E2A1883AFF; Sun, 3 Apr 2022 12:39:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="OtHnZX7k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E87D83ADD; Sun, 3 Apr 2022 12:39:28 +0200 (CEST) Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D305A83AC2 for ; Sun, 3 Apr 2022 12:39:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=3XHlJYgYKBo0r9tB22x55x2v.t53B-s55A2z9A9.uv4E.uv@flex--ascull.bounces.google.com Received: by mail-wm1-x349.google.com with SMTP id f19-20020a7bcd13000000b0038c01defd5aso3473044wmj.7 for ; Sun, 03 Apr 2022 03:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=SgyGhudp4iBDlGm2zYJF9Ph5Yu/tdSihMjO1vjI9HY4=; b=OtHnZX7kjg/uSjf9wJ1xUtVDBnsUXSzsNta1oBF6xN4X2xEKEmcvjEvrhkCs4qCCoZ AAAVg9v0VJNR/asK9d+dELlqVTL2y9pA6+TW20cUMN7fI9M7YTLRN0hz3AogONT5HdL+ NVkCxPP3uIqa/5c3W7KY93dAwPkNCog9Z04HBvIz1w6ktKxHmtC2avf303EDGn/ev4Yv htyw7CyhaKJIuEqwWX07d8iC5MAiuNAo/pnpkHqFLElBF5CQnB8OkO5tOmON3Wf+Jy+p RB24OjfMGDXYLTC4NeJiIVT0MRjlC/Qn9aSKd3Vx7ekP4Nsw0/jqDQnI6/hdO8+OlOTs TOXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=SgyGhudp4iBDlGm2zYJF9Ph5Yu/tdSihMjO1vjI9HY4=; b=KiaNT9RszvTlxLhnVYbAiiMvrcw5NEU5Zg4xvvyWjbiOuXsvHPlY1Xf1GESsCEh1o4 WPv7AGETl+WuxR4Ejooyx0g0s5IXr6DuveE6Rndgcp6aM7TL9NzmOJHvmnyeycWq8VVo 5DLPfJjNG4eh7k7kP+WI43I+O5OE8aCw8asdOdBxmdAgL3wPlvG9GR0dWSgoggKdCGco Jsxag0vVLa3ywdffj94q3TN+5Te3+AFTJOutDhhbYE8bRdsGWYGE4axNz3xBRiUhxGQ9 iU1eSCdZEMfmQzvLKC3cM2GG+Quauo6YpskZN4SrmPleut1HWH+TCI/sndW/Vy2L5Fm7 IFpw== X-Gm-Message-State: AOAM530gzAgh7IVZouxkhRY/0Y4Fmrb0L6lnIFViJLQ/1QBzdTElvpst D3lvH1UpaNJdlAv7qXMiHyk3vo2rTK3LUn7/+JcETFVCliBPwxSPAhsczDCq4rZQEPo3+5W0CWD 71QcgGqr6uKAkZuRH5u8F1VkpXR8D6ma5oURwHot6pLOaiAtGzB/3/hlhh3k= X-Google-Smtp-Source: ABdhPJxbgaNu2tKRVi+AbR0Vj4F5gUyZ/7+hwMLBznWMeO36074Bi5kwFaQVNHJUsOmLwKJUjCMkelURx7U= X-Received: from ascull.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1510]) (user=ascull job=sendgmr) by 2002:a7b:c925:0:b0:38c:82d7:868d with SMTP id h5-20020a7bc925000000b0038c82d7868dmr14735726wml.100.1648982364471; Sun, 03 Apr 2022 03:39:24 -0700 (PDT) Date: Sun, 3 Apr 2022 10:39:10 +0000 In-Reply-To: <20220403103915.3338027-1-ascull@google.com> Message-Id: <20220403103915.3338027-4-ascull@google.com> Mime-Version: 1.0 References: <20220403103915.3338027-1-ascull@google.com> X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-goog Subject: [PATCH 3/8] x86: sandbox: Add missing PCI bar to barinfo From: Andrew Scull To: u-boot@lists.denx.de Cc: sjg@chromium.org, seanga2@gmail.com, Andrew Scull , Bin Meng Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean There are expecte to be bars 0 through 5, but the last of these was missing leading to an read beyond the buffer. Add the missing element with zero values. Signed-off-by: Andrew Scull Cc: Simon Glass Cc: Bin Meng --- drivers/power/acpi_pmc/pmc_emul.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c index a61eb5bd85..8015031da8 100644 --- a/drivers/power/acpi_pmc/pmc_emul.c +++ b/drivers/power/acpi_pmc/pmc_emul.c @@ -37,6 +37,7 @@ static struct pci_bar { { 0, 0 }, { 0, 0 }, { PCI_BASE_ADDRESS_SPACE_IO, 256 }, + { 0, 0 }, }; struct pmc_emul_priv { -- 2.35.1.1094.g7c7d902a7c-goog