summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge@foundries.io>2022-04-16 20:15:30 +0200
committerMichal Simek <michal.simek@amd.com>2022-05-13 09:10:02 +0200
commit9b31e109b2dab0e696659f77c057e620bfb62b5b (patch)
treef7e3a7cf83f0a14c2f41bc288c1367d46fd42eb0 /drivers/soc
parentc387e62614713d0cc9e3ed022b86c9f320b02853 (diff)
downloadu-boot-9b31e109b2dab0e696659f77c057e620bfb62b5b.tar.gz
soc: xilinx: versal: fix out of bounds array access
The call to xilinx_pm_request requires an array of a larger size. Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Link: https://lore.kernel.org/r/20220416181530.2311155-1-jorge@foundries.io Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/soc_xilinx_versal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/soc_xilinx_versal.c b/drivers/soc/soc_xilinx_versal.c
index f8bcd9ab40..3d8c25c19b 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[PAYLOAD_ARG_CNT];
int ret;
priv->family = versal_family;