Skip to contentSkip to conversation

dib9000: release a lock on error

PATCH New Dan Carpenter 1 participant 1 message Sep 29, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dib9000: release a lock on error

This lock should be released as well on the error path.

drivers/media/dvb/frontends/dib9000.c +1 -0
index e276b11..660f806 100644
@@ -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;
 	}