From: Alexey Khoroshilov Date: Fri, 21 Dec 2012 21:44:16 +0000 (+0400) Subject: mei: fix mismatch in mutex unlock-lock in mei_amthif_read() X-Git-Tag: v3.8-rc4~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6028db0146cf5a68dbd1508225ea49840997880;p=pandora-kernel.git mei: fix mismatch in mutex unlock-lock in mei_amthif_read() Users of mei_amthif_read() expect it leaves dev->device_lock held, while there is a path where mei_amthif_read() unlocks device_lock and returns -ERESTARTSYS. The patch move code locking device_lock back before the return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Cc: Sedat Dilek Acked-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed