From: Michal Simek Date: Wed, 20 Apr 2022 07:39:04 +0000 (+0200) Subject: soc: xilinx: zynqmp: fix out of bounds array access X-Git-Tag: v2025.01-rc5-pxa1908~1395^2~22 X-Git-Url: http://git.dujemihanovic.xyz/html/static/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=303198e26dd455aafd23d25e9f4d99d9fee1caec;p=u-boot.git soc: xilinx: zynqmp: fix out of bounds array access The call to xilinx_pm_request requires an array of a larger size. Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/5f1409de285d7454af171a54e5f115da9d82c44e.1650440343.git.michal.simek@xilinx.com --- diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c index 7d33ce2163..a71115b17c 100644 --- a/drivers/soc/soc_xilinx_zynqmp.c +++ b/drivers/soc/soc_xilinx_zynqmp.c @@ -49,7 +49,7 @@ static const struct soc_ops soc_xilinx_zynqmp_ops = { static int soc_xilinx_zynqmp_probe(struct udevice *dev) { struct soc_xilinx_zynqmp_priv *priv = dev_get_priv(dev); - u32 ret_payload[4]; + u32 ret_payload[PAYLOAD_ARG_CNT]; int ret; priv->family = zynqmp_family;