ALSA: hda/realtek - Fix possible Oops with NULL input_mux
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Feb 2012 10:59:45 +0000 (11:59 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Feb 2012 10:59:45 +0000 (11:59 +0100)
commit5803a326465e38ee3cab8badbd8947732a8277f5
tree21abe80de9685862a4cca2ac5f0fa0a4998401cd
parent164f73ee93131f67a61eaca6a6f6180580c39445
ALSA: hda/realtek - Fix possible Oops with NULL input_mux

When BIOS is damn crazy and gives no pin-config at all, the driver might
lead to a NULL dereference.  Let's add a NULL check for such a case.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c