summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2014-06-04 16:05:36 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-30 20:13:54 -0700
commitbd313c8332ddeecb4a67562b4c252dde5dd81272 (patch)
tree1634542bf875f9a75a7592770f7b75fe0d7c2506 /mm
parentc3dc58b993c5bd5ef1b60b116d2716e3f8e90207 (diff)
kthread: fix return value of kthread_create() upon SIGKILL.
commit 8fe6929cfd43c44834858a53e129ffdc7c166298 upstream. 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 <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Oleg Nesterov <oleg@redhat.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions