Re: [PATCH] stmmac_dt_phy: null check the allocation

2019-07-25 Thread David Miller
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 = >

[PATCH] stmmac_dt_phy: null check the allocation

2019-07-23 Thread Navid Emamdoost
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