parisc: perf: return -EFAULT on error
The copy_from_user() returns the number of bytes remaining to be copied but we want to return -EFAULT if it's non-zero. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NHelge Deller <deller@gmx.de>
Showing
想要评论请 注册 或 登录