[media] dib9000: release a lock on error
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Sep 2011 05:10:06 +0000 (02:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Sep 2011 16:32:56 +0000 (13:32 -0300)
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>
drivers/media/dvb/frontends/dib9000.c

index e276b119039efc906fefe44a870556c4fb3c8280..660f80661ed48f5af1eb21c5e584e9d89f3a592f 100644 (file)
@@ -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;
        }