]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix Oops with Realtek quirks with NULL adc_nids
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Jul 2011 12:01:24 +0000 (14:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Jul 2011 14:05:30 +0000 (16:05 +0200)
commit2c787c1e70a09bae494d948e1e452799ae4f6590
tree7bc9c871f7af52c7fc0683690aeafaf35dacd0c2
parent95637afbdbf33feff8bed76bcbdab1c0d25787aa
ALSA: hda - Fix Oops with Realtek quirks with NULL adc_nids

Somce quirk models don't set adc_nids but let the parser filling it.
But the recent code has unnecessary NULL-checks of spec->input_mux,
and it resulted in NULL dereferences.
This patch fixes that regression.

Reported-and-tested-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c