projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45d0110
)
V4L/DVB (9140): anysee: unlock I2C-mutex in error case
author
Antti Palosaari
<crope@iki.fi>
Mon, 11 Aug 2008 13:36:43 +0000
(10:36 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 13 Oct 2008 09:15:30 +0000
(07:15 -0200)
- unlock I2C-mutex also in error case
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/anysee.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/anysee.c
b/drivers/media/dvb/dvb-usb/anysee.c
index 2f408d2e1ef349be29c3ae6ba97ee09df9b49bc5..f511d105081f6164e8f9983a408e64628d5db563 100644
(file)
--- a/
drivers/media/dvb/dvb-usb/anysee.c
+++ b/
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)