From 5064e50b4a10cef2fe48a5716ffb3845488f0a14 Mon Sep 17 00:00:00 2001 From: Andrew G. Morgan Date: Wed, 21 May 2008 21:46:35 -0700 Subject: [PATCH] Bug fix: default error to success this is the default expected by the subsequent switch (). Signed-off-by: Andrew G. Morgan --- kernel/sys.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index 895d2d4..cb25a64 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1657,6 +1657,8 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, if (security_task_prctl(option, arg2, arg3, arg4, arg5, &error)) return error; + error = 0; + switch (option) { case PR_SET_PDEATHSIG: if (!valid_signal(arg2)) { -- 1.5.3.7