]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] cx231xx: fix double lock typo
authorDan Carpenter <error27@gmail.com>
Thu, 21 Oct 2010 19:22:14 +0000 (16:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 22 Oct 2010 23:25:40 +0000 (21:25 -0200)
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>
drivers/media/video/cx231xx/cx231xx-i2c.c

index cce74e5a305b10ff8a5926a0bc5708e93e9f0616..835670623dfbc4540b28d5d51eee0d6223cc4b9e 100644 (file)
@@ -372,7 +372,7 @@ static int cx231xx_i2c_xfer(struct i2c_adapter *i2c_adap,
                        rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]);
                        if (rc < 0) {
                                dprintk2(2, " no device\n");
-                               mutex_lock(&dev->i2c_lock);
+                               mutex_unlock(&dev->i2c_lock);
                                return rc;
                        }