]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Allow pass NULL dev for snd_pci_quirk_lookup()
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Oct 2014 10:08:38 +0000 (12:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Oct 2014 10:08:38 +0000 (12:08 +0200)
commit8680c4539a67cf67f3e3c3166119b115a4b58cc2
tree44749468fa4996afa2cf33337be62f71ea447df8
parent1616263da2bd0af3271f465d256cf7645da1cc52
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 <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/misc.c