From: Alexey Khoroshilov Date: Mon, 29 Aug 2011 17:46:57 +0000 (+0400) Subject: staging/easycap: fix mismatch in easycap_poll() mutex lock-unlock X-Git-Tag: v3.2-rc1~169^2^2~812 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f88fcf407933321d08c45520fbeffca70b05d1;p=pandora-kernel.git staging/easycap: fix mismatch in easycap_poll() mutex lock-unlock In case if condition (kd != isdongle(peasycap)) becomes true, easycap_poll() returns without releasing easycapdc60_dongle[kd].mutex_video. The patch adds mutex_unlock() before that return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Acked-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed