diff options
author | Antti Palosaari <crope@iki.fi> | 2008-08-11 16:36:43 +0300 |
---|---|---|
committer | Antti Palosaari <crope@iki.fi> | 2008-08-11 16:36:43 +0300 |
commit | b04cda9f65807457171b624465e47bf8ad5488c4 (patch) | |
tree | c580876aaf71959ff71b6a61568cdb58b53c103f /linux/drivers | |
parent | 4b41f2267b44ed49beacd512a3ace46889906922 (diff) | |
download | mediapointer-dvb-s2-b04cda9f65807457171b624465e47bf8ad5488c4.tar.gz mediapointer-dvb-s2-b04cda9f65807457171b624465e47bf8ad5488c4.tar.bz2 |
anysee: unlock I2C-mutex in error case
From: Antti Palosaari <crope@iki.fi>
- unlock I2C-mutex also in error case
Priority: high
Signed-off-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/anysee.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/anysee.c b/linux/drivers/media/dvb/dvb-usb/anysee.c index 2f408d2e1..f511d1050 100644 --- a/linux/drivers/media/dvb/dvb-usb/anysee.c +++ b/linux/drivers/media/dvb/dvb-usb/anysee.c @@ -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) |