From: Navid Emamdoost
Date: Tue, 23 Jul 2019 17:28:09 -0500
> @@ -342,10 +342,13 @@ static int stmmac_dt_phy(struct plat_stmmacenet_data
> *plat,
> mdio = true;
> }
>
> - if (mdio)
> + if (mdio) {
> plat->mdio_bus_data =
>
devm_kzalloc may fail and return NULL. So the null check is needed.
Signed-off-by: Navid Emamdoost
---
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
2 matches
Mail list logo