| 133 | } |
| 134 | |
| 135 | static void terminate_thread(struct thread *t, enum cb_err error) |
| 136 | { |
| 137 | if (t->handle) { |
| 138 | t->handle->error = error; |
| 139 | t->handle->state = THREAD_DONE; |
| 140 | } |
| 141 | |
| 142 | free_thread(t); |
| 143 | schedule(NULL); |
| 144 | } |
| 145 | |
| 146 | static asmlinkage void call_wrapper(void *unused) |
| 147 | { |
no test coverage detected