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)
commit60a6a8425a84fa46a3831ce79197640b8224311b
tree7bc9c871f7af52c7fc0683690aeafaf35dacd0c2
parent767cd365b22820df07b962b49ce04b220b98e537
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