projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa39477
)
phy: miphy28lp: unlock on error in miphy28lp_init()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 16 Dec 2014 23:55:23 +0000
(
02:55
+0300)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Tue, 23 Dec 2014 10:14:31 +0000
(15:44 +0530)
We need to unlock before returning the -EINVAL here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-miphy28lp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/phy/phy-miphy28lp.c
b/drivers/phy/phy-miphy28lp.c
index e34da13885e8c422a7fdecc153d6407c0b52999f..27fa62ce613618debb31fadb6bb50a51d9e65893 100644
(file)
--- a/
drivers/phy/phy-miphy28lp.c
+++ b/
drivers/phy/phy-miphy28lp.c
@@
-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);