sched: fix timeout_expiry() not releasing its reference to this_cpu

This commit is contained in:
2023-05-01 08:26:13 +01:00
parent 8a0291c9b3
commit 194efd4b6b

View File

@@ -15,6 +15,8 @@ static void timeout_expiry(struct timer *timer)
rq_lock(rq, &flags); rq_lock(rq, &flags);
rq_enqueue(rq, thread); rq_enqueue(rq, thread);
rq_unlock(rq, flags); rq_unlock(rq, flags);
put_cpu(cpu);
} }
void add_timer(struct timer *timer) void add_timer(struct timer *timer)