From: Dan Carpenter Date: Thu, 29 Sep 2011 05:10:06 +0000 (-0300) Subject: [media] dib9000: release a lock on error X-Git-Tag: MMI-PSA29.97-13-9~18177^2~51 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f4cf2c3a971c4d5154def8ef9ce4811d702852d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] dib9000: release a lock on error This lock should be released as well on the error path. Signed-off-by: Dan Carpenter Cc: Patrick Boettcher Cc: Olivier Grenie Signed-off-by: Mauro Carvalho Chehab --- 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; }