]> git.dujemihanovic.xyz Git - u-boot.git/commit
driver: net: fsl-mc: fix error handing in init_phy
authorPankaj Bansal <pankaj.bansal@nxp.com>
Wed, 10 Oct 2018 08:38:31 +0000 (14:08 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 10 Oct 2018 17:43:18 +0000 (12:43 -0500)
commitf259c43d893071e3a4f43536735c959dcf320d99
tree12746c8a1b45a1b2574f69b2acec1adcbc28e5c4
parentd75e81d9e05575e3f8471e618846565b15b30060
driver: net: fsl-mc: fix error handing in init_phy

if an error occurs during init_phy, we should free the phydev structure
which has been allocated by phy_connect.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ldpaa_eth/ldpaa_eth.c