]> 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)
commit3d525f16f852f9939a1f6131fd47456178c846d7
tree7bc9c871f7af52c7fc0683690aeafaf35dacd0c2
parent1a98dc4f45c69501614093875c0651ee1079f3a9
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