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