summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/icmp_socket.h
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2014-06-04 16:05:36 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 16:53:51 -0700
commit8fe6929cfd43c44834858a53e129ffdc7c166298 (patch)
treeca0f40dfcf8fff6959727f43256e557f1dfd5775 /net/batman-adv/icmp_socket.h
parentc177c81e09e517bbf75b67762cdab1b83aba6976 (diff)
downloadblackbird-op-linux-8fe6929cfd43c44834858a53e129ffdc7c166298.tar.gz
blackbird-op-linux-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 <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Oleg Nesterov <oleg@redhat.com> Acked-by: David Rientjes <rientjes@google.com> Cc: <stable@vger.kernel.org> [3.13+] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/batman-adv/icmp_socket.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud