# Re: \[PATCH\] ARM: OMAPFB: panel-sony-acx565akm: fix missing mutex unlocks

- From: Pavel Machek \<hidden\>
- Date: 2014-01-04 12:51:16 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2014/01/4175309
- Thread: https://ratatoskr.run/linux-omap/2013/12/4173852/t.md

```text
On Mon 2013-12-30 18:17:52, Ivaylo Dimitrov wrote:
> From: Ivaylo Dimitrov <redacted>
> 
> Commit c37dd677988ca50bc8bc60ab5ab053720583c168 fixes the unbalanced
> unlock in acx565akm_enable but introduces another problem - if
> acx565akm_panel_power_on exits early, the mutex is not unlocked. Fix
> that by unlocking the mutex on early return. Also add mutex protection in
> acx565akm_panel_power_off and remove an unused variable
> 
> Signed-off-by: Ivaylo Dimitrov <redacted>

Reviewed-by: Pavel Machek <redacted>
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
```
