aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 9425c9600c89..accfd7bfe387 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -1831,7 +1831,7 @@ static int perf_event_read_group(struct perf_event *event,
1831 1831
1832 size = n * sizeof(u64); 1832 size = n * sizeof(u64);
1833 1833
1834 if (copy_to_user(buf + size, values, size)) { 1834 if (copy_to_user(buf + ret, values, size)) {
1835 ret = -EFAULT; 1835 ret = -EFAULT;
1836 goto unlock; 1836 goto unlock;
1837 } 1837 }