diff options
| author | Tetsuo Handa <[email protected]> | 2014-06-04 23:05:36 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-06-04 23:53:51 +0000 |
| commit | 8fe6929cfd43c44834858a53e129ffdc7c166298 (patch) | |
| tree | ca0f40dfcf8fff6959727f43256e557f1dfd5775 /lib/debugobjects.c | |
| parent | hugetlb: restrict hugepage_migration_support() to x86_64 (diff) | |
| download | kernel-8fe6929cfd43c44834858a53e129ffdc7c166298.tar.gz kernel-8fe6929cfd43c44834858a53e129ffdc7c166298.zip | |
kthread: fix return value of kthread_create() upon SIGKILL.
Commit 786235eeba0e ("kthread: make kthread_create() killable") meant
for allowing kthread_create() to abort as soon as killed by the
OOM-killer. But returning -ENOMEM is wrong if killed by SIGKILL from
userspace. Change kthread_create() to return -EINTR upon SIGKILL.
Signed-off-by: Tetsuo Handa <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: <[email protected]> [3.13+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
