]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: Fix mismatch in twl4030 mutex lock-unlock
authorSanjeev Premi <premi@ti.com>
Mon, 11 Jul 2011 15:20:31 +0000 (20:50 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:02:30 +0000 (13:02 -0800)
commit57c08e2742f718f6bcfe848796018e0488c1029f
tree425b0a517034bb83a8b6c3c8c8abd7e745f758cb
parent232db269e6c1b876cc62f36415a6e066f7a4e877
mfd: Fix mismatch in twl4030 mutex lock-unlock

commit e178ccb33569da17dc897a08a3865441b813bdfb upstream.

A mutex is locked on entry into twl4030_madc_conversion().
Immediate return on some error conditions leaves the
mutex locked.

This patch ensures that mutex is always unlocked before
leaving the function.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mfd/twl4030-madc.c