ALSA: hda - Fix oops caused by recent commit "Fix internal mic for Lenovo Ideapad...
[pandora-kernel.git] / sound / pci / hda / patch_conexant.c
index 94f0c4a..58c287b 100644 (file)
@@ -4463,7 +4463,9 @@ static void apply_fixup(struct hda_codec *codec,
        struct conexant_spec *spec = codec->spec;
 
        quirk = snd_pci_quirk_lookup(codec->bus->pci, quirk);
-       if (quirk && table[quirk->value]) {
+       if (!quirk)
+               return;
+       if (table[quirk->value]) {
                snd_printdd(KERN_INFO "hda_codec: applying pincfg for %s\n",
                            quirk->name);
                apply_pincfg(codec, table[quirk->value]);