summaryrefslogtreecommitdiff
path: root/arch/ia64/include/asm/kprobes.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-07-23 03:29:30 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2009-07-23 14:07:18 (GMT)
commit8650ae32ef7045e763825dee6256dde7f331bb85 (patch)
tree546a07e4c5b6fc731b48604769392a671c1fb18e /arch/ia64/include/asm/kprobes.h
parent4c739ff043e5787d97c9691d62cabf7a29e75a9d (diff)
downloadlinux-fsl-qoriq-8650ae32ef7045e763825dee6256dde7f331bb85.tar.xz
tracing: only truncate ftrace files when O_TRUNC is set
The current code will truncate the ftrace files contents if O_APPEND is not set and the file is opened in write mode. This is incorrect. It should only truncate the file if O_TRUNC is set. Otherwise if one of these files is opened by a C program with fopen "r+", it will incorrectly truncate the file. Reported-by: Jiri Olsa <jolsa@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch/ia64/include/asm/kprobes.h')
0 files changed, 0 insertions, 0 deletions