Page MenuHomeFreeBSD

D60562.1795519704.diff
No OneTemporary

Authored By
Unknown
Size
415 B
Referenced Files
None
Subscribers
None

D60562.1795519704.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, Nov 24, 11:28 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40578046
Default Alt Text
D60562.1795519704.diff (415 B)

Event Timeline