commit | ab51e378bfa8dfb68823cbfa01503406179b2dee | [log] [tgz] |
---|---|---|
author | Michal Simek <michal.simek@xilinx.com> | Wed Apr 20 09:39:04 2022 +0200 |
committer | Michal Simek <michal.simek@amd.com> | Fri May 13 09:10:02 2022 +0200 |
tree | 390e9279e54a054a0911ee6b95572539a38a58ad | |
parent | 4b19cb1f8d59998c166b88c492ed8d0f8ca3dea0 [diff] |
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 <michal.simek@xilinx.com> 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 7d33ce2..a71115b 100644 --- a/drivers/soc/soc_xilinx_zynqmp.c +++ b/drivers/soc/soc_xilinx_zynqmp.c
@@ -49,7 +49,7 @@ 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;