Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153821020
D43984.id135054.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D43984.id135054.diff
View Options
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -2684,7 +2684,8 @@
struct umtx_q *uq, *uq2;
struct umtx_pi *pi;
uint32_t id, owner, rceiling;
- int error, pri, new_inherited_pri, su;
+ int error, pri, new_inherited_pri;
+ bool su;
id = td->td_tid;
uq = td->td_umtxq;
@@ -2739,7 +2740,7 @@
error = EFAULT;
else {
mtx_lock(&umtx_lock);
- if (su != 0)
+ if (su || new_inherited_pri == PRI_MAX)
uq->uq_inherited_pri = new_inherited_pri;
pri = PRI_MAX;
TAILQ_FOREACH(pi, &uq->uq_pi_contested, pi_link) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 12:43 AM (13 h, 43 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32100545
Default Alt Text
D43984.id135054.diff (598 B)
Attached To
Mode
D43984: PP mutexes: unlock: Reset inherited prio regardless of privileges
Attached
Detach File
Event Timeline
Log In to Comment