[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <51C29FBC.1090507@asianux.com>
Date: Thu, 20 Jun 2013 14:22:52 +0800
From: Chen Gang <gang.chen@...anux.com>
To: Thomas Gleixner <tglx@...utronix.de>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] kernel/itimer.c: for return value, using -EINVAL instead
of -EFAULT
For the system call getitimer(), if the parameter 'value' is NULL, need
return -EINVAL, not -EFAULT.
Signed-off-by: Chen Gang <gang.chen@...anux.com>
---
kernel/itimer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/itimer.c b/kernel/itimer.c
index 8d262b4..6f9d757 100644
--- a/kernel/itimer.c
+++ b/kernel/itimer.c
@@ -102,7 +102,7 @@ int do_getitimer(int which, struct itimerval *value)
SYSCALL_DEFINE2(getitimer, int, which, struct itimerval __user *, value)
{
- int error = -EFAULT;
+ int error = -EINVAL;
struct itimerval get_buffer;
if (value) {
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists