All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] soc: xilinx: versal: fix out of bounds array access
@ 2022-04-16 17:48 Jorge Ramirez-Ortiz
  0 siblings, 0 replies; only message in thread
From: Jorge Ramirez-Ortiz @ 2022-04-16 17:48 UTC (permalink / raw)
  To: jorge, michal.simek, t.karthik.reddy, ashok.reddy.soma; +Cc: u-boot

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..752a51a4b2 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[5];
 	int ret;
 
 	priv->family = versal_family;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-16 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-16 17:48 [PATCH] soc: xilinx: versal: fix out of bounds array access Jorge Ramirez-Ortiz

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.