From: Alexey Khoroshilov Date: Mon, 29 Aug 2011 20:17:56 +0000 (+0400) Subject: staging: lirc: fix mismatch in mutex lock-unlock in imon_probe X-Git-Tag: v3.2-rc1~169^2^2~770 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6699291f89aa3e22490c9c93620350f92015b699;p=pandora-kernel.git staging: lirc: fix mismatch in mutex lock-unlock in imon_probe If kzalloc failed for allocation of context, goto alloc_status_switch leads to unlock of unacquired driver_lock. The patch moves mutex_lock(&driver_lock) before allocation of context. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed