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

Commit e613f8fa authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (9140): anysee: unlock I2C-mutex in error case



- unlock I2C-mutex also in error case

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 45d01103
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -178,14 +178,14 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg,
			inc = 1;
		}
		if (ret)
			return ret;
			break;

		i += inc;
	}

	mutex_unlock(&d->i2c_mutex);

	return i;
	return ret ? ret : i;
}

static u32 anysee_i2c_func(struct i2c_adapter *adapter)