Thread (3 messages) 3 messages, 3 authors, 2013-11-19
STALE4627d REVIEWED: 3 (3M)

[patch] pinctrl: rockchip: missing unlock on error in rockchip_set_pull()

From: heiko@sntech.de (Heiko Stübner)
Date: 2013-11-14 15:51:45
Also in: kernel-janitors

Am Donnerstag, 14. November 2013, 09:22:54 schrieb Dan Carpenter:
We need to unlock here before returning -EINVAL.
I seem to say this a lot recently: thanks for the catch :-)

Fixes: 6ca5274d1d12 ('pinctrl: rockchip: add rk3188 specifics')
Signed-off-by: Dan Carpenter <redacted>
Acked-by: Heiko Stuebner <heiko@sntech.de>

quoted hunk ↗ jump to hunk
diff --git a/drivers/pinctrl/pinctrl-rockchip.c
b/drivers/pinctrl/pinctrl-rockchip.c index e939c28..bfd1824 100644
--- a/drivers/pinctrl/pinctrl-rockchip.c
+++ b/drivers/pinctrl/pinctrl-rockchip.c
@@ -504,6 +504,7 @@ static int rockchip_set_pull(struct rockchip_pin_bank
*bank, data |= (3 << bit);
 			break;
 		default:
+			spin_unlock_irqrestore(&bank->slock, flags);
 			dev_err(info->dev, "unsupported pull setting %d\n",
 				pull);
 			return -EINVAL;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help