From af4c1e1b0547c7dd23cc4e580adca0820dc77c21 Mon Sep 17 00:00:00 2001 From: Sumit Bhattacharya Date: Thu, 22 Mar 2012 19:47:16 +0530 Subject: ALSA: HDA: Return -ENODEV if hdmi_pcm_open() fails Return -ENODEV instead of -EAGAIN if hdmi_pcm_open() fails. There is a chance of user space getting hung while trying to open pcm device if -EAGAIN is returned. Bug 949659 Change-Id: If4ff4078d8e0d882859ac97742e7d48d2e6c230c Signed-off-by: Sumit Bhattacharya Reviewed-on: http://git-master/r/91819 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson Reviewed-by: Ravindra Lokhande --- sound/pci/hda/patch_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 493d368572ae..fcc32f590874 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -840,7 +840,7 @@ static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, } } if (!eld->lpcm_sad_ready) - return -EAGAIN; + return -ENODEV; } #endif -- cgit v1.2.3