Skip to content
Commit a2f64724 authored by Wu Bo's avatar Wu Bo Committed by Takashi Iwai
Browse files

ALSA: hda/hdmi: fix without unlocked before return



Fix the following coccicheck warning:
sound/pci/hda/patch_hdmi.c:1852:2-8: preceding lock on line 1846

After add sanity check to pass klockwork check,
The spdif_mutex should be unlock before return true
in check_non_pcm_per_cvt().

Fixes: 960a581e ("ALSA: hda: fix some klockwork scan warnings")
Signed-off-by: default avatarWu Bo <wubo40@huawei.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1587907042-694161-1-git-send-email-wubo40@huawei.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ca76282b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment