summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_output.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-04 19:10:05 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-03-04 19:10:05 -0500
commit2dc5d12b1f43134e9bc5037f69f4739cfdfab93e (patch)
treefd1070a750b7f88e01527b3d808e73f7f9fcb45a /kernel/trace/trace_output.c
parent4f3640f8a358f2183a8c966f299eeb55ca523e06 (diff)
downloadlinux-2dc5d12b1f43134e9bc5037f69f4739cfdfab93e.tar.bz2
tracing: do not return EFAULT if read copied anything
Impact: fix trace read to conform to standards Andrew Morton, Theodore Tso and H. Peter Anvin brought to my attention that a userspace read should not return -EFAULT if it succeeded in copying anything. It should only return -EFAULT if it failed to copy at all. This patch modifies the check of copy_from_user and updates the return code appropriately. I also used H. Peter Anvin's short cut rule to just test ret == count. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace_output.c')
0 files changed, 0 insertions, 0 deletions