mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
V4L/DVB (9140): anysee: unlock I2C-mutex in error case
- unlock I2C-mutex also in error case Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
45d011031d
commit
e613f8fa54
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue