Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8383962 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[media] cx231xx: fix double lock typo



This was supposed to be an unlock on the error path.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarDevin Heitmueller <dheitmueller@hauppauge.com>
Cc: Palash Bandyopadhyay < palash.bandyopadhyay@conexant.com>
Cc: Sri Deevi <Srinivasa.Deevi@conexant.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a8494689
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
			}