summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSumit Bhattacharya <sumitb@nvidia.com>2012-03-22 19:47:16 +0530
committerSimone Willett <swillett@nvidia.com>2012-03-23 17:29:37 -0700
commitaf4c1e1b0547c7dd23cc4e580adca0820dc77c21 (patch)
treebb3b2b041a5889326581e6e20c465c39f250d44c /sound
parent31f8d442a4fe1aa69261e6452b8b652aa637385c (diff)
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 <sumitb@nvidia.com> Reviewed-on: http://git-master/r/91819 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_hdmi.c2
1 files changed, 1 insertions, 1 deletions
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