diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-12-21 12:11:20 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-03 16:32:52 +0000 |
commit | 28b698b7342c7d5300cfe217cd77ff7d2a55e03d (patch) | |
tree | d695309cc1d97634b1b737e14307b6c815fbe5fc /arch/sparc | |
parent | fd270fca2001bcdac0658eb673c20920baeed86c (diff) |
ASoC: pcm512x: Fix a double unlock in pcm512x_digital_mute()
We accidentally call mutex_unlock(&pcm512x->mutex); twice in a row.
I re-wrote the error handling to use "goto unlock;" instead of returning
directly. Hopefully, it makes the code a little simpler.
Fixes: 3500f1c589e9 ("ASoC: pcm512x: Implement the digital_mute interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviwed-by: Dimitris Papavasiliou <dpapavas@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch/sparc')
0 files changed, 0 insertions, 0 deletions