commit | e5b50ada76f44c8742a123813689bff4db062a5a | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Oct 08 12:08:38 2014 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Wed Oct 08 12:08:38 2014 +0200 |
tree | 44749468fa4996afa2cf33337be62f71ea447df8 | |
parent | 6d16941aee6eb468c5a5cc78ecbaf840f3e16df5 [diff] |
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>