]> git.baikalelectronics.ru Git - uboot.git/commit
arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 27 Sep 2021 11:22:04 +0000 (14:22 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:57 +0000 (18:50 +0300)
commit354395f1cbb90c1370e392928f781262e6d2fe4a
tree5554948649dc77d5e894bc0234ba12da07e51d60
parentd766bdfd54be868c57363bf165cc9bcc36b5ca4c
arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails

If mdio_register fails, it is nice to not leave behind dangling
allocated memory.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
arch/powerpc/cpu/mpc85xx/ether_fcc.c