diff mbox series

soc: xilinx: versal: fix out of bounds array access

Message ID 20220416174845.2307569-1-jorge@foundries.io
State Superseded
Delegated to: Michal Simek
Headers show
Series soc: xilinx: versal: fix out of bounds array access | expand

Commit Message

Jorge Ramirez-Ortiz April 16, 2022, 5:48 p.m. UTC
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 mbox series

Patch

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;