ALSA: hda - Release assigned pin/cvt at error path of hdmi_pcm_open()
authorTakashi Iwai <tiwai@suse.de>
Fri, 1 Feb 2013 13:01:27 +0000 (14:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2013 17:21:11 +0000 (09:21 -0800)
commit32a08c1e1115ae59bea13d6e354d0d7fc5fbe2d7
treebdd88f165c0156139465a1d956fd920ef7f89ec8
parentd451fb49065183643cc048ab9ee905e5c312219e
ALSA: hda - Release assigned pin/cvt at error path of hdmi_pcm_open()

commit 2ad779b7329d6894a80df94e693e72eaa0d56790 upstream.

If the driver detects and invalid ELD, it gives an open error.
But it forgot to release the assigned pin, converter and spdif ctls
before returning.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_hdmi.c