linux/arch/x86/events/intel
Xiongfeng Wang 8ebd16c11c perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map()
pci_get_device() will increase the reference count for the returned
pci_dev, so snr_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. Let's add the missing pci_dev_put().

Fixes: ee49532b38 ("perf/x86/intel/uncore: Add IMC uncore support for Snow Ridge")
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-4-wangxiongfeng2@huawei.com
2022-11-24 11:09:25 +01:00
..
bts.c perf/x86: Add compiler barrier after updating BTS 2021-09-17 15:08:38 +02:00
core.c perf: Rewrite core context handling 2022-10-27 20:12:16 +02:00
cstate.c perf/x86/cstate: Add new Raptor Lake S support 2022-09-29 12:20:53 +02:00
ds.c perf: Rewrite core context handling 2022-10-27 20:12:16 +02: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: Rewrite core context handling 2022-10-27 20:12:16 +02:00
Makefile perf/x86/intel/uncore: Parse uncore discovery tables 2021-04-02 10:04:54 +02:00
p4.c perf/x86/p4: Remove perfctr_second_write quirk 2022-09-07 21:54:04 +02: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 Changes for this cycle were: 2022-03-22 13:06:49 -07:00
pt.h perf/x86/intel/pt: Prevent redundant WRMSRs 2019-11-13 11:06:18 +01:00
uncore_discovery.c perf/x86/intel/uncore: Fix the build on !CONFIG_PHYS_ADDR_T_64BIT 2022-03-03 08:58:22 +01:00
uncore_discovery.h perf/x86/intel/uncore: Make uncore_discovery clean for 64 bit addresses 2022-03-01 16:19:01 +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 broken read_counter() for SNB IMC PMU 2022-08-27 00:05:38 +02:00
uncore_snbep.c perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map() 2022-11-24 11:09:25 +01:00
uncore.c perf/x86/uncore: Add new Raptor Lake S support 2022-09-29 12:20:53 +02:00
uncore.h perf/x86/intel/uncore: Make set_mapping() procedure void 2022-11-24 11:09:24 +01:00