From: Tetsuo Handa Date: Wed, 4 Jun 2014 23:05:36 +0000 (-0700) Subject: kthread: fix return value of kthread_create() upon SIGKILL. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~270 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fe6929cfd43c44834858a53e129ffdc7c166298;p=pandora-kernel.git 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 Cc: Oleg Nesterov Acked-by: David Rientjes Cc: [3.13+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed