]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/misc.c
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / sound / core / misc.c
index 30e027ecf4da7383c7e6045f0b9a9f9905ca63b4..f2e8226c88fbb962b68fdab5ff40cae30813e873 100644 (file)
@@ -145,6 +145,8 @@ EXPORT_SYMBOL(snd_pci_quirk_lookup_id);
 const struct snd_pci_quirk *
 snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list)
 {
+       if (!pci)
+               return NULL;
        return snd_pci_quirk_lookup_id(pci->subsystem_vendor,
                                       pci->subsystem_device,
                                       list);