diff options
Diffstat (limited to 'kernel/kthread.c')
-rw-r--r-- | kernel/kthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index 9a130ec06f7a..c2390f41307b 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c | |||
@@ -262,7 +262,7 @@ static void create_kthread(struct kthread_create_info *create) | |||
262 | * kthread_stop() has been called). The return value should be zero | 262 | * kthread_stop() has been called). The return value should be zero |
263 | * or a negative error number; it will be passed to kthread_stop(). | 263 | * or a negative error number; it will be passed to kthread_stop(). |
264 | * | 264 | * |
265 | * Returns a task_struct or ERR_PTR(-ENOMEM). | 265 | * Returns a task_struct or ERR_PTR(-ENOMEM) or ERR_PTR(-EINTR). |
266 | */ | 266 | */ |
267 | struct task_struct *kthread_create_on_node(int (*threadfn)(void *data), | 267 | struct task_struct *kthread_create_on_node(int (*threadfn)(void *data), |
268 | void *data, int node, | 268 | void *data, int node, |
@@ -298,7 +298,7 @@ struct task_struct *kthread_create_on_node(int (*threadfn)(void *data), | |||
298 | * that thread. | 298 | * that thread. |
299 | */ | 299 | */ |
300 | if (xchg(&create->done, NULL)) | 300 | if (xchg(&create->done, NULL)) |
301 | return ERR_PTR(-ENOMEM); | 301 | return ERR_PTR(-EINTR); |
302 | /* | 302 | /* |
303 | * kthreadd (or new kernel thread) will call complete() | 303 | * kthreadd (or new kernel thread) will call complete() |
304 | * shortly. | 304 | * shortly. |