diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2007-06-05 00:00:57 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2007-06-05 00:00:57 +0000 |
| commit | 982d11f836278f1e95ae1ae398aa4d1d07a19006 (patch) | |
| tree | 6727b982fa0d93b8aafab313bdc797aee9e314d2 /sys/security | |
| parent | a8cdbf449a61645a36419c3ae4f1134fc39d8f8e (diff) | |
Notes
Diffstat (limited to 'sys/security')
| -rw-r--r-- | sys/security/mac_lomac/mac_lomac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c index ae575317501f..8d9b13e0a979 100644 --- a/sys/security/mac_lomac/mac_lomac.c +++ b/sys/security/mac_lomac/mac_lomac.c @@ -536,10 +536,10 @@ maybe_demote(struct mac_lomac *subjlabel, struct mac_lomac *objlabel, subj->mac_lomac.ml_rangelow = objlabel->ml_single; subj->mac_lomac.ml_rangehigh = objlabel->ml_single; subj->mac_lomac.ml_flags |= MAC_LOMAC_FLAG_UPDATE; - mtx_lock_spin(&sched_lock); + thread_lock(curthread); curthread->td_flags |= TDF_ASTPENDING; curthread->td_proc->p_sflag |= PS_MACPEND; - mtx_unlock_spin(&sched_lock); + thread_unlock(curthread); /* * Avoid memory allocation while holding a mutex; cache the |
