mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
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
This commit is contained in:
parent
9b31e109b2
commit
303198e26d
@ -49,7 +49,7 @@ static const struct soc_ops soc_xilinx_zynqmp_ops = {
|
|||||||
static int soc_xilinx_zynqmp_probe(struct udevice *dev)
|
static int soc_xilinx_zynqmp_probe(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct soc_xilinx_zynqmp_priv *priv = dev_get_priv(dev);
|
struct soc_xilinx_zynqmp_priv *priv = dev_get_priv(dev);
|
||||||
u32 ret_payload[4];
|
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
priv->family = zynqmp_family;
|
priv->family = zynqmp_family;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user