Rev 1787 | Rev 1888 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1839 | ||
---|---|---|---|
Line 127... | Line 127... | ||
127 | ipl = interrupts_disable(); |
127 | ipl = interrupts_disable(); |
128 | spinlock_lock(&tasks_lock); |
128 | spinlock_lock(&tasks_lock); |
129 | 129 | ||
130 | t = task_find_by_id(id); |
130 | t = task_find_by_id(id); |
131 | 131 | ||
132 | if (!t) { |
132 | if ((!t) || (!context_check(CONTEXT, t->context))) { |
133 | /* |
133 | /* |
134 | * There is no task with the specified ID. |
134 | * There is no task with the specified ID |
- | 135 | * or the task belongs to a different security |
|
- | 136 | * context. |
|
135 | */ |
137 | */ |
136 | spinlock_unlock(&tasks_lock); |
138 | spinlock_unlock(&tasks_lock); |
137 | interrupts_restore(ipl); |
139 | interrupts_restore(ipl); |
138 | return ENOENT; |
140 | return ENOENT; |
139 | } |
141 | } |