commit | c217429b14708999d6ac5de964c452600e8797d3 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Fri Nov 07 00:23:30 2008 +0100 |
committer | Takashi Iwai <tiwai@suse.de> | Fri Nov 07 00:23:30 2008 +0100 |
tree | 6da5bb742cf9096321323ee3e2572f9ab0b417d9 | |
parent | 64154835c58a99370c3b7fbf85d2451d6906b3b4 [diff] |
ALSA: hda - Add missing NULL check in amp hash allocation Added the missing NULL check from allocator in get_alloc_hash(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 810465b..f13834b 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c
@@ -899,6 +899,8 @@ /* add a new hash entry */ info = snd_array_new(&cache->buf); + if (!info) + return NULL; info->key = key; info->val = 0; info->next = cache->hash[idx];