diff options
| -rw-r--r-- | 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 0567e32d71aa..b8785e26ee1c 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, | |||
| 5926 | if (ret) | 5926 | if (ret) |
| 5927 | return -EFAULT; | 5927 | return -EFAULT; |
| 5928 | 5928 | ||
| 5929 | /* | ||
| 5930 | * If the type exists, the corresponding creation will verify | ||
| 5931 | * the attr->config. | ||
| 5932 | */ | ||
| 5933 | if (attr->type >= PERF_TYPE_MAX) | ||
| 5934 | return -EINVAL; | ||
| 5935 | |||
| 5936 | if (attr->__reserved_1) | 5929 | if (attr->__reserved_1) |
| 5937 | return -EINVAL; | 5930 | return -EINVAL; |
| 5938 | 5931 | ||
