]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix NULL dereference in snd_hda_gen_build_controls()
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Dec 2012 14:15:10 +0000 (15:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:30:59 +0000 (08:30 +0100)
commit0eb1e30af214eeb25d011a7fcbfe40c8ab21f091
treee8a7fcc2be37d8d19ad2d61b4219583bbe5cc84d
parent28f23705ba4fd14c0ec6ef95d96377fbdfd10893
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 <tiwai@suse.de>
sound/pci/hda/hda_generic.c