extcon: arizona: unlock mutex on error path in arizona_micdet()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 5 Nov 2012 08:11:41 +0000 (17:11 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 20 Nov 2012 07:00:44 +0000 (16:00 +0900)
commitbe31cc0bc9e6d24d7bd069a4eae81aa9fcf5d2cd
tree50b5c513f64c926e6d838135b781321f6841dfde
parentf4a75d2eb7b1e2206094b901be09adb31ba63681
extcon: arizona: unlock mutex on error path in arizona_micdet()

If regmap_read() failed, arizona_micdet() returns IRQ_NONE
leaving &info->lock mutex locked as opposed to all other return paths.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
drivers/extcon/extcon-arizona.c