mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
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>
This commit is contained in:
parent
c387e62614
commit
9b31e109b2
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ static const struct soc_ops soc_xilinx_versal_ops = {
|
||||||
static int soc_xilinx_versal_probe(struct udevice *dev)
|
static int soc_xilinx_versal_probe(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct soc_xilinx_versal_priv *priv = dev_get_priv(dev);
|
struct soc_xilinx_versal_priv *priv = dev_get_priv(dev);
|
||||||
u32 ret_payload[4];
|
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
priv->family = versal_family;
|
priv->family = versal_family;
|
||||||
|
|
Loading…
Reference in a new issue