]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/i915: Fix one too many pci_dev_put()
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 16 Apr 2022 06:44:18 +0000 (23:44 -0700)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Apr 2022 06:59:14 +0000 (08:59 +0200)
commit9d03739df8fc743701ff93626eb4c4cfe8eb7b54
treeffb128d6f02143147eaf94581556eaab562a8a6c
parent3d8f07e3c502b59bc2007df4e989d953e632fa66
ALSA: hda/i915: Fix one too many pci_dev_put()

pci_get_class() will already unref the pci device passed as argument.
So if it's unconditionally unref'ed, even if the loop is not stopped,
there will be one too many unref for each device not matched.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5701
Fixes: 514227bfca24 ("ALSA: hda/i915 - skip acomp init if no matching display")
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20220416064418.2364582-1-lucas.demarchi@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_i915.c