[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-9985c20f9e4aee6857c08246b273a3695a52b929@git.kernel.org>
Date: Thu, 21 Jul 2011 19:31:16 GMT
From: tip-bot for Lin Ming <ming.m.lin@...el.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
robert.richter@....com, a.p.zijlstra@...llo.nl,
ming.m.lin@...el.com, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/core] perf: Remove perf_event_attr::type check
Commit-ID: 9985c20f9e4aee6857c08246b273a3695a52b929
Gitweb: http://git.kernel.org/tip/9985c20f9e4aee6857c08246b273a3695a52b929
Author: Lin Ming <ming.m.lin@...el.com>
AuthorDate: Thu, 30 Jun 2011 08:09:55 +0000
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 21 Jul 2011 20:41:55 +0200
perf: Remove perf_event_attr::type check
PMU type id can be allocated dynamically, so perf_event_attr::type check
when copying attribute from userspace to kernel is not valid.
Signed-off-by: Lin Ming <ming.m.lin@...el.com>
Cc: Robert Richter <robert.richter@....com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Link: http://lkml.kernel.org/r/1309421396-17438-4-git-send-email-ming.m.lin@intel.com
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/events/core.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 0567e32..b8785e2 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -5926,13 +5926,6 @@ static int perf_copy_attr(struct perf_event_attr __user *uattr,
if (ret)
return -EFAULT;
- /*
- * If the type exists, the corresponding creation will verify
- * the attr->config.
- */
- if (attr->type >= PERF_TYPE_MAX)
- return -EINVAL;
-
if (attr->__reserved_1)
return -EINVAL;
--
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