Skip to content
Commit ad0cf347 authored by John Blackwood's avatar John Blackwood Committed by Ingo Molnar
Browse files

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: default avatarJohn <Blackwood&lt;john.blackwood@ccur.com>
Signed-off-by: default avatarJoe Korty <joe.korty@ccur.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100928220311.GA18145@tsunami.ccur.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 29979aa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment