From: Alexey Khoroshilov Date: Tue, 30 Aug 2011 20:41:14 +0000 (+0400) Subject: staging: mei: unlock dev->device_lock mutex on error path in mei_open() X-Git-Tag: v3.2-rc1~169^2^2~638 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=303dfbf5727410bfa3e82d4e2554813f1e8f2de6;p=pandora-kernel.git staging: mei: unlock dev->device_lock mutex on error path in mei_open() mei_open() acquires dev->device_lock mutex and try to allocate mei_cl, but if the allocation fails it goes to return statement. As a result dev->device_lock left locked. The patch fixes goto to unlock dev->device_lock mutex on this path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed