Skip to content

Commit

Permalink
Fixes double release bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HAKarlsson committed Oct 24, 2024
1 parent 3143e8e commit 47162cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/src/cap_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ err_t cap_monitor_yield(cte_t mon, pid_t pid, proc_t **next)
proc_t *proc = proc_get(pid);
if (proc_acquire(proc)) {
*next = proc;
proc_release(monitor);
return SUCCESS;
}
return ERR_INVALID_STATE;
}
Expand Down

0 comments on commit 47162cd

Please sign in to comment.