Re: [PATCH] extcon: arizona: unlock mutex on error path in arizona_micdet()

2012-11-05 Thread Chanwoo Choi
On 11/05/2012 05:04 PM, Mark Brown wrote: > On Sun, Nov 04, 2012 at 01:19:46PM -0700, Alexey Khoroshilov wrote: >> 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 (l

Re: [PATCH] extcon: arizona: unlock mutex on error path in arizona_micdet()

2012-11-05 Thread Mark Brown
On Sun, Nov 04, 2012 at 01:19:46PM -0700, Alexey Khoroshilov wrote: > 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). Acked-by: Mark Brown sign

[PATCH] extcon: arizona: unlock mutex on error path in arizona_micdet()

2012-11-04 Thread Alexey Khoroshilov
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 --- drivers/extcon/extcon-arizona.c |1 + 1 file changed, 1 inse