WSL2-Linux-Kernel/arch/x86/events/intel
Xiongfeng Wang 0358bc7cc2 perf/x86/intel/uncore: Fix reference count leak in __uncore_imc_init_box()
[ Upstream commit 17b8d847b9 ]

pci_get_device() will increase the reference count for the returned
pci_dev, so tgl_uncore_get_mc_dev() will return a pci_dev with its
reference count increased. We need to call pci_dev_put() to decrease the
reference count before exiting from __uncore_imc_init_box(). Add
pci_dev_put() for both normal and error path.

Fixes: fdb6482244 ("perf/x86: Add Intel Tiger Lake uncore support")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20221118063137.121512-5-wangxiongfeng2@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:02 +01:00
..
Makefile perf/x86/intel/uncore: Parse uncore discovery tables 2021-04-02 10:04:54 +02:00
bts.c x86: Fix various typos in comments, take #2 2021-03-21 23:50:28 +01:00
core.c perf/x86/intel: Add Cooper Lake stepping to isolation_ucodes[] 2022-11-10 18:15:39 +01:00
cstate.c perf/x86/cstate: Add ICELAKE_X and ICELAKE_D support 2021-07-02 15:58:33 +02:00
ds.c perf/x86/intel: Fix pebs event constraints for SPR 2022-11-10 18:15:40 +01:00
knc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
lbr.c perf/x86/intel/lbr: Use setup_clear_cpu_cap() instead of clear_cpu_cap() 2022-11-03 23:59:15 +09:00
p4.c Perf events changes in this cycle were: 2021-04-28 13:03:44 -07:00
p6.c x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping 2018-02-15 01:15:52 +01:00
pt.c perf/x86/intel/pt: Fix sampling using single range output 2022-11-26 09:24:48 +01:00
pt.h perf/x86/intel/pt: Prevent redundant WRMSRs 2019-11-13 11:06:18 +01:00
uncore.c perf/x86/intel/uncore: Add alias PMU name 2021-07-02 15:58:40 +02:00
uncore.h perf/x86/intel/uncore: Add alias PMU name 2021-07-02 15:58:40 +02:00
uncore_discovery.c perf/x86/intel/uncore: Support IIO free-running counters on Sapphire Rapids server 2021-07-02 15:58:41 +02:00
uncore_discovery.h perf/x86/intel/uncore: Fix invalid unit check 2021-11-18 19:16:00 +01:00
uncore_nhmex.c perf/x86/intel/uncore: Correct fixed counter index check for NHM 2018-05-31 12:36:28 +02:00
uncore_snb.c perf/x86/intel/uncore: Fix reference count leak in __uncore_imc_init_box() 2022-12-31 13:14:02 +01:00
uncore_snbep.c perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map() 2022-12-31 13:14:02 +01:00