All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jorge Ramirez-Ortiz <jorge@foundries.io>
To: jorge@foundries.io, michal.simek@xilinx.com,
	t.karthik.reddy@xilinx.com, ashok.reddy.soma@xilinx.com
Cc: u-boot@lists.denx.de
Subject: [PATCH v2] soc: xilinx: versal: fix out of bounds array access
Date: Sat, 16 Apr 2022 20:15:30 +0200	[thread overview]
Message-ID: <20220416181530.2311155-1-jorge@foundries.io> (raw)

The call to xilinx_pm_request requires an array of a larger size.

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
---
 drivers/soc/soc_xilinx_versal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/soc_xilinx_versal.c b/drivers/soc/soc_xilinx_versal.c
index f8bcd9ab40..3d8c25c19b 100644
--- a/drivers/soc/soc_xilinx_versal.c
+++ b/drivers/soc/soc_xilinx_versal.c
@@ -45,7 +45,7 @@ static const struct soc_ops soc_xilinx_versal_ops = {
 static int soc_xilinx_versal_probe(struct udevice *dev)
 {
 	struct soc_xilinx_versal_priv *priv = dev_get_priv(dev);
-	u32 ret_payload[4];
+	u32 ret_payload[PAYLOAD_ARG_CNT];
 	int ret;
 
 	priv->family = versal_family;
-- 
2.34.1


             reply	other threads:[~2022-04-16 18:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-16 18:15 Jorge Ramirez-Ortiz [this message]
2022-04-20  5:23 ` [PATCH v2] soc: xilinx: versal: fix out of bounds array access Jorge Ramirez-Ortiz, Foundries
2022-04-20  7:36 ` Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220416181530.2311155-1-jorge@foundries.io \
    --to=jorge@foundries.io \
    --cc=ashok.reddy.soma@xilinx.com \
    --cc=michal.simek@xilinx.com \
    --cc=t.karthik.reddy@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.