ALSA: sparc: fix missing unlock on error in snd_cs4231_playback_prepare()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 11 Nov 2013 14:21:33 +0000 (22:21 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Nov 2013 15:23:16 +0000 (16:23 +0100)
commita522409e9ce4605989bfe87793a2f09b00474e94
tree9cd9f92b4a89810b62f993a29a3bd56f99d0e0d4
parent0c52db8cca7b033d03ebcda652158e2311d5ac64
ALSA: sparc: fix missing unlock on error in snd_cs4231_playback_prepare()

Add the missing unlock before return from function
snd_cs4231_playback_prepare() in the error handling
case.

Fixes: 5a19b178d7b4 ('ALSA: sparc/cs4231: Use WARN_ON() instead of BUG_ON()')
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sparc/cs4231.c