mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ASoC: Ux500: unlock on an error path
There is a missing mutex_unlock() here. The cleanup path also has more debug output. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
e0690385a8
commit
9f0ed7a7c5
1 changed files with 2 additions and 1 deletions
|
@ -1235,7 +1235,8 @@ static int anc_status_control_put(struct snd_kcontrol *kcontrol,
|
||||||
req != ANC_APPLY_IIR) {
|
req != ANC_APPLY_IIR) {
|
||||||
dev_err(dev, "%s: ERROR: Unsupported status to set '%s'!\n",
|
dev_err(dev, "%s: ERROR: Unsupported status to set '%s'!\n",
|
||||||
__func__, enum_anc_state[req]);
|
__func__, enum_anc_state[req]);
|
||||||
return -EINVAL;
|
status = -EINVAL;
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
apply_fir = req == ANC_APPLY_FIR || req == ANC_APPLY_FIR_IIR;
|
apply_fir = req == ANC_APPLY_FIR || req == ANC_APPLY_FIR_IIR;
|
||||||
apply_iir = req == ANC_APPLY_IIR || req == ANC_APPLY_FIR_IIR;
|
apply_iir = req == ANC_APPLY_IIR || req == ANC_APPLY_FIR_IIR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue