diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-21 15:22:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-22 19:25:40 -0400 |
commit | b8383962c388288b99bcaadcf8a87b049cd56d4a (patch) | |
tree | 34e60193fda6f2e1926742eff50a7646595335cb /drivers/media | |
parent | a84946895fa747a81c3b55a1398e03cdba4778d9 (diff) |
[media] cx231xx: fix double lock typo
This was supposed to be an unlock on the error path.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Devin Heitmueller <dheitmueller@hauppauge.com>
Cc: Palash Bandyopadhyay < palash.bandyopadhyay@conexant.com>
Cc: Sri Deevi <Srinivasa.Deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-i2c.c b/drivers/media/video/cx231xx/cx231xx-i2c.c index cce74e5a305b..835670623dfb 100644 --- a/drivers/media/video/cx231xx/cx231xx-i2c.c +++ b/drivers/media/video/cx231xx/cx231xx-i2c.c | |||
@@ -372,7 +372,7 @@ static int cx231xx_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
372 | rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]); | 372 | rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]); |
373 | if (rc < 0) { | 373 | if (rc < 0) { |
374 | dprintk2(2, " no device\n"); | 374 | dprintk2(2, " no device\n"); |
375 | mutex_lock(&dev->i2c_lock); | 375 | mutex_unlock(&dev->i2c_lock); |
376 | return rc; | 376 | return rc; |
377 | } | 377 | } |
378 | 378 | ||