From f8a5154426d79a00a639e9d1e0987b7cca276dd6 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 3 Jul 2009 23:10:23 +0200 Subject: [PATCH] --- yaml --- r: 154845 b: refs/heads/master c: c470331e69bd54d11a9ea3c27a0e4ad783d02d6b h: refs/heads/master i: 154843: 24004b9adee6fd9f1bff4f0b03274e1879980442 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_intel.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 015a2619a63a..831bc6e08bd8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 70d321e6380f128096429d6e5b678f94ab0cef5d +refs/heads/master: c470331e69bd54d11a9ea3c27a0e4ad783d02d6b diff --git a/trunk/sound/pci/hda/hda_intel.c b/trunk/sound/pci/hda/hda_intel.c index b36dc46615a4..1877d95d4aa6 100644 --- a/trunk/sound/pci/hda/hda_intel.c +++ b/trunk/sound/pci/hda/hda_intel.c @@ -1464,6 +1464,12 @@ static int azx_pcm_open(struct snd_pcm_substream *substream) snd_pcm_set_sync(substream); mutex_unlock(&chip->open_mutex); + if (snd_BUG_ON(!runtime->hw.channels_min || !runtime->hw.channels_max)) + return -EINVAL; + if (snd_BUG_ON(!runtime->hw.formats)) + return -EINVAL; + if (snd_BUG_ON(!runtime->hw.rates)) + return -EINVAL; return 0; }