PERFORCE change 71653 for review
Robert Watson
rwatson at FreeBSD.org
Wed Feb 23 11:47:32 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=71653
Change 71653 by rwatson at rwatson_paprika on 2005/02/23 11:47:16
Don't unlock the mac_bsdextended_mtx twice when replacing a rule.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/security/mac_bsdextended/mac_bsdextended.c#82 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/security/mac_bsdextended/mac_bsdextended.c#82 (text+ko) ====
@@ -185,13 +185,13 @@
if (index + 1 > rule_slots)
rule_slots = index + 1;
rule_count++;
+ mtx_unlock(&mac_bsdextended_mtx);
} else {
/* printf("replacement\n"); */
*rules[index] = temprule;
mtx_unlock(&mac_bsdextended_mtx);
FREE(ruleptr, M_MACBSDEXTENDED);
}
- mtx_unlock(&mac_bsdextended_mtx);
return (0);
}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list