Commit 9f0ed7a7c547efbce2c15b5017744809e9bba23a
Committed by
Mark Brown
1 parent
e0690385a8
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
sound/soc/codecs/ab8500-codec.c
... | ... | @@ -1235,7 +1235,8 @@ |
1235 | 1235 | req != ANC_APPLY_IIR) { |
1236 | 1236 | dev_err(dev, "%s: ERROR: Unsupported status to set '%s'!\n", |
1237 | 1237 | __func__, enum_anc_state[req]); |
1238 | - return -EINVAL; | |
1238 | + status = -EINVAL; | |
1239 | + goto cleanup; | |
1239 | 1240 | } |
1240 | 1241 | apply_fir = req == ANC_APPLY_FIR || req == ANC_APPLY_FIR_IIR; |
1241 | 1242 | apply_iir = req == ANC_APPLY_IIR || req == ANC_APPLY_FIR_IIR; |