mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02: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) {
|
||||
mutex_lock(&curcont->space_list.lock);
|
||||
if (!(space = address_space_find(ids->spid))) {
|
||||
mutex_unlock(&curcont->space_list.lock);
|
||||
ret = -ESRCH;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user