From: Takashi Iwai Date: Wed, 8 Oct 2014 10:08:38 +0000 (+0200) Subject: ALSA: Allow pass NULL dev for snd_pci_quirk_lookup() X-Git-Tag: fixes-against-v3.18-rc2~128^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5b50ada76f44c8742a123813689bff4db062a5a;p=pandora-kernel.git ALSA: Allow pass NULL dev for snd_pci_quirk_lookup() Add a NULL check in snd_pci_quirk_lookup() so that NULL can be passed as a pci_dev pointer. This fixes the possible NULL dereferences in HD-audio drivers. Reported-by: Dan Carpenter Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed