mirror of
https://github.com/drasko/codezero.git
synced 2026-02-10 00:43:15 +01:00
Added a forgotten unlock on an error condition
This commit is contained in:
@@ -286,6 +286,7 @@ int thread_setup_space(struct ktcb *tcb, struct task_ids *ids, unsigned int flag
|
|||||||
else if (flags & TC_COPY_SPACE) {
|
else if (flags & TC_COPY_SPACE) {
|
||||||
mutex_lock(&curcont->space_list.lock);
|
mutex_lock(&curcont->space_list.lock);
|
||||||
if (!(space = address_space_find(ids->spid))) {
|
if (!(space = address_space_find(ids->spid))) {
|
||||||
|
mutex_unlock(&curcont->space_list.lock);
|
||||||
ret = -ESRCH;
|
ret = -ESRCH;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user