From: Alexey Khoroshilov Date: Mon, 5 Nov 2012 08:11:41 +0000 (+0900) Subject: extcon: arizona: unlock mutex on error path in arizona_micdet() X-Git-Tag: v3.8-rc1~95^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be31cc0bc9e6d24d7bd069a4eae81aa9fcf5d2cd;p=pandora-kernel.git 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 Acked-by: Mark Brown Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- Reading git-diff-tree failed