Re: [PATCH 24/25] arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails

2021-09-28 Thread Ramon Fried
On Mon, Sep 27, 2021 at 2:22 PM Vladimir Oltean wrote: > > If mdio_register fails, it is nice to not leave behind dangling > allocated memory. > > Signed-off-by: Vladimir Oltean > --- > arch/powerpc/cpu/mpc85xx/ether_fcc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff

[PATCH 24/25] arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails

2021-09-27 Thread Vladimir Oltean
If mdio_register fails, it is nice to not leave behind dangling allocated memory. Signed-off-by: Vladimir Oltean --- arch/powerpc/cpu/mpc85xx/ether_fcc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/ether_fcc.c