提交 4e038e89 编写于 作者: D Dan Carpenter 提交者: Kishon Vijay Abraham I

phy: miphy28lp: unlock on error in miphy28lp_init()

We need to unlock before returning the -EINVAL here.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NGabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 aa39477b
...@@ -1050,7 +1050,8 @@ static int miphy28lp_init(struct phy *phy) ...@@ -1050,7 +1050,8 @@ static int miphy28lp_init(struct phy *phy)
ret = miphy28lp_init_usb3(miphy_phy); ret = miphy28lp_init_usb3(miphy_phy);
break; break;
default: default:
return -EINVAL; ret = -EINVAL;
break;
} }
mutex_unlock(&miphy_dev->miphy_mutex); mutex_unlock(&miphy_dev->miphy_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册