diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2012-02-13 15:01:32 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 12:55:39 +0100 |
commit | 0c07aec31a98a63ee83f2bbad4a2fab0e0f58d33 (patch) | |
tree | 7e6982866c963818b433950f73c416443d3330f1 /drivers/media/radio/radio-sf16fmr2.c | |
parent | [media] cx22702: Fix signal strength (diff) | |
download | linux-0c07aec31a98a63ee83f2bbad4a2fab0e0f58d33.tar.xz linux-0c07aec31a98a63ee83f2bbad4a2fab0e0f58d33.zip |
[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 <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-sf16fmr2.c')
0 files changed, 0 insertions, 0 deletions