Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177887303
D60562.1795519704.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
415 B
Referenced Files
None
Subscribers
None
D60562.1795519704.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60562: hwpmc: release a PMC whose ID could not be copied out
Attached
Detach File
Event Timeline