Skip to contentSkip to conversation

ASoC: Ux500: unlock on an error path

PATCH Applied Dan Carpenter 2 participants 2 messages Jun 16, 2012 – Jun 17, 2012

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

PATCH 1/1 ASoC: Ux500: unlock on an error path

There is a missing mutex_unlock() here. The cleanup path also has more debug output.

sound/soc/codecs/ab8500-codec.c +2 -1
index 389dd66..3c79592 100644
@@ -1235,7 +1235,8 @@ static int anc_status_control_put(struct snd_kcontrol *kcontrol,
 		req != ANC_APPLY_IIR) {
 		dev_err(dev, "%s: ERROR: Unsupported status to set '%s'!\n",
 			__func__, enum_anc_state[req]);
-		return -EINVAL;
+		status = -EINVAL;
+		goto cleanup;
 	}
 	apply_fir = req = ANC_APPLY_FIR || req = ANC_APPLY_FIR_IIR;
 	apply_iir = req = ANC_APPLY_IIR || req = ANC_APPLY_FIR_IIR;
Applied
#1 lore raw
Quoted 2 lines · Dan Carpenter

There is a missing mutex_unlock() here. The cleanup path also has more debug output.

Applied, thanks.