Page MenuHomeFreeBSD

D52252.id161218.diff
No OneTemporary

D52252.id161218.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
@@ -1068,10 +1068,9 @@
*/
for (i = 0; !decline_attach && i < tc->cr_ngroups; i++)
decline_attach = !groupmember(tc->cr_groups[i], oc);
-
- /* check the read and saved gids too */
if (decline_attach == 0)
- decline_attach = !groupmember(tc->cr_rgid, oc) ||
+ decline_attach = !groupmember(tc->cr_gid, oc) ||
+ !groupmember(tc->cr_rgid, oc) ||
!groupmember(tc->cr_svgid, oc);
crfree(tc);

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 1, 1:00 AM (6 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28233569
Default Alt Text
D52252.id161218.diff (546 B)

Event Timeline