Page MenuHomeFreeBSD

D60562.id189853.diff
No OneTemporary

D60562.id189853.diff

diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -4367,6 +4367,12 @@
break;
error = copyout(&pa, arg, sizeof(pa));
+ /*
+ * The caller never learns the ID of an unpublished PMC; do
+ * not leave it (and the row it holds) behind.
+ */
+ if (error != 0)
+ (void)pmc_do_op_pmcrelease(pa.pm_pmcid);
}
break;

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 20, 8:58 PM (1 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40578046
Default Alt Text
D60562.id189853.diff (415 B)

Event Timeline