From: Oleg Nesterov Date: Wed, 9 May 2007 09:34:23 +0000 (-0700) Subject: ____call_usermodehelper: don't flush_signals() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c93465181fed0f8f5942a41108943dadea0aa345;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ____call_usermodehelper: don't flush_signals() ____call_usermodehelper() has no reason for flush_signals(). It is a fresh forked process which is going to exec a user-space application or exit on failure. Signed-off-by: Oleg Nesterov Cc: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kmod.c b/kernel/kmod.c index 49cc4b9c1a8d..6cea9db25c3d 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -135,7 +135,6 @@ static int ____call_usermodehelper(void *data) /* Unblock all signals and set the session keyring. */ new_session = key_get(sub_info->ring); - flush_signals(current); spin_lock_irq(¤t->sighand->siglock); old_session = __install_session_keyring(current, new_session); flush_signal_handlers(current, 1);