summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-09-29 02:10:06 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-30 13:32:56 -0300
commit2f4cf2c3a971c4d5154def8ef9ce4811d702852d (patch)
tree79cb1bdc2fdf018b31e1fc733e3b11fc0864f354
parent4c4364e022f8422e602edbb97a2d873dc0b6c769 (diff)
downloadtalos-op-linux-2f4cf2c3a971c4d5154def8ef9ce4811d702852d.tar.gz
talos-op-linux-2f4cf2c3a971c4d5154def8ef9ce4811d702852d.zip
[media] dib9000: release a lock on error
This lock should be released as well on the error path. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Patrick Boettcher <Patrick.Boettcher@dibcom.fr> Cc: Olivier Grenie <olivier.grenie@dibcom.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/dib9000.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/dib9000.c b/drivers/media/dvb/frontends/dib9000.c
index e276b119039e..660f80661ed4 100644
--- a/drivers/media/dvb/frontends/dib9000.c
+++ b/drivers/media/dvb/frontends/dib9000.c
@@ -2169,6 +2169,7 @@ static int dib9000_read_ber(struct dvb_frontend *fe, u32 * ber)
DibAcquireLock(&state->demod_lock);
DibAcquireLock(&state->platform.risc.mem_mbx_lock);
if (dib9000_fw_memmbx_sync(state, FE_SYNC_CHANNEL) < 0) {
+ DibReleaseLock(&state->platform.risc.mem_mbx_lock);
ret = -EIO;
goto error;
}
OpenPOWER on IntegriCloud