]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix incorrect copy_from_user() usage
authorJohn Blackwood <john.blackwood@ccur.com>
Tue, 28 Sep 2010 22:03:11 +0000 (18:03 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 12 Oct 2010 09:45:01 +0000 (11:45 +0200)
commit5c5f79ec3203e53b7d55ae01ca86713a74e0f2ea
treecd007170b0f20f724924ff53897bf534847e14c4
parent05a6d824ec4c13380991670d0598e320ebbeb19c
perf: Fix incorrect copy_from_user() usage

perf events: repair incorrect use of copy_from_user

This makes the perf_event_period() return 0 instead of
-EFAULT on success.

Signed-off-by: John Blackwood<john.blackwood@ccur.com>
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100928220311.GA18145@tsunami.ccur.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c