ALSA: bebob: Fix a missing to unlock mutex in error handling case
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 22 Jul 2014 14:11:03 +0000 (23:11 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jul 2014 14:21:17 +0000 (16:21 +0200)
commit901401166464dc1875825235bb2541af31b4c384
treeee4daa19b6879f580000882de7c04f1c24dc3e13
parent4da63c6fc426023d1a20e45508c47d7d68c6a53d
ALSA: bebob: Fix a missing to unlock mutex in error handling case

In error handling case, special_clk_ctl_put() returns without unlock_mutex(),
therefore the mutex is still locked. This commit moves mutex_lock() after
the error handling case.

This commit is my solution for this post.

[PATCH -next] ALSA: bebob: Fix missing unlock on error in special_clk_ctl_put()
https://lkml.org/lkml/2014/7/20/12

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_maudio.c