hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/x86/events/intel/uncore_snb.c
....@@ -1274,6 +1274,7 @@
12741274 /* MCHBAR is disabled */
12751275 if (!(mch_bar & BIT(0))) {
12761276 pr_warn("perf uncore: MCHBAR is disabled. Failed to map IMC free-running counters.\n");
1277
+ pci_dev_put(pdev);
12771278 return;
12781279 }
12791280 mch_bar &= ~BIT(0);
....@@ -1287,6 +1288,8 @@
12871288 box->io_addr = ioremap(addr, type->mmio_map_size);
12881289 if (!box->io_addr)
12891290 pr_warn("perf uncore: Failed to ioremap for %s.\n", type->name);
1291
+
1292
+ pci_dev_put(pdev);
12901293 }
12911294
12921295 static struct intel_uncore_ops tgl_uncore_imc_freerunning_ops = {