ALSA: x86: Handle the error from hdmi_audio_probe() properly
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 07:29:56 +0000 (08:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:22:46 +0000 (17:22 +0100)
commit45459d16867988a792a18233bdfc294492976841
treed2bfa56ebcd1c96d91dd3c25ed62fa5121680780
parent79dda75a2cfc5628f25338122d24ee8789b367cf
ALSA: x86: Handle the error from hdmi_audio_probe() properly

The error from hdmi_audio_probe() wasn't handled properly, and it may
leave some resources leaked or mapped.  Fix it and also clean up the
error paths.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_lpe_audio.c