Skip to contentSkip to conversation

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

PATCH Superseded Jorge Ramirez-Ortiz 1 participant 1 message Apr 16, 2022 Arm/Zynq architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: xilinx: versal: fix out of bounds array access

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

---
 drivers/soc/soc_xilinx_versal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/soc_xilinx_versal.c +1 -1
index f8bcd9ab40..752a51a4b2 100644
@@ -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;
Signature · 1 line
2.34.1