From: Alexey Khoroshilov Date: Mon, 13 Feb 2012 14:01:32 +0000 (-0300) Subject: [media] staging: go7007: fix mismatch in mutex lock-unlock in [read|write]_reg_fp X-Git-Tag: v3.4-rc1~110^2^2~142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c07aec31a98a63ee83f2bbad4a2fab0e0f58d33;p=pandora-kernel.git [media] staging: go7007: fix mismatch in mutex lock-unlock in [read|write]_reg_fp If go7007_usb_vendor_request() fails in write_reg_fp() or in read_reg_fp(), the usb->i2c_lock mutex left locked. The patch moves mutex_unlock(&usb->i2c_lock) before check for go7007_usb_vendor_request() returned value. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed