Added a forgotten unlock on an error condition

This commit is contained in:
Bahadir Balban
2009-11-01 15:22:36 +02:00
parent 83a740f597
commit 5992b6435c

View File

@@ -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;
}