From: Takashi Iwai Date: Wed, 19 Dec 2012 14:15:10 +0000 (+0100) Subject: ALSA: hda - Fix NULL dereference in snd_hda_gen_build_controls() X-Git-Tag: v3.9-rc1~129^2~70^2~142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36502d020030665bcfc558767cbb0ddf87b9892f;p=pandora-kernel.git ALSA: hda - Fix NULL dereference in snd_hda_gen_build_controls() When no controls are assigned in the parser (e.g. no analog path), spec->kctls.list is still NULL. We need to check it before passing to snd_hda_add_new_ctls(). Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed