phy: miphy28lp: unlock on error in miphy28lp_init()
Subsystems (2)
PATCH 1/1 phy: miphy28lp: unlock on error in miphy28lp_init()
We need to unlock before returning the -EINVAL here.
Signed-off-by Dan Carpenter <[email protected]>
drivers/phy/phy-miphy28lp.c +2 -1
@@ -1050,7 +1050,8 @@ static int miphy28lp_init(struct phy *phy) ret =miphy28lp_init_usb3 (miphy_phy);break ;default : -return -EINVAL ; + ret = -EINVAL ; +break ; }mutex_unlock (&miphy_dev->miphy_mutex);
Thanks Dan !
Best Regards
Gabriel
Quoted 18 lines · Dan Carpenter
We need to unlock before returning the
-EINVALhere.Signed-off-by Dan Carpenter <[email protected]>drivers/phy/phy-miphy28lp.c +2
-1@@ -1050,7 +1050,8 @@ static int miphy28lp_init(struct phy *phy) ret =miphy28lp_init_usb3 (miphy_phy);break ;default : -return -EINVAL ; + ret = -EINVAL ; +break ; }mutex_unlock (&miphy_dev->miphy_mutex);