diff options
author | Jerry Snitselaar <jsnitsel@redhat.com> | 2015-11-16 20:57:28 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-12-23 20:27:20 +0100 |
commit | ff078d8fc644722f7b163d79e8a03b00b9dc2385 (patch) | |
tree | 54ed114e88d8d85899d3e9821d6ff4523b726291 /include/trace/trace_events.h | |
parent | bpf: Constify bpf_verifier_ops structure (diff) | |
download | linux-ff078d8fc644722f7b163d79e8a03b00b9dc2385.tar.xz linux-ff078d8fc644722f7b163d79e8a03b00b9dc2385.zip |
tracing: Use seq_buf_used() in seq_buf_to_user() instead of len
commit 5ac48378414d ("tracing: Use trace_seq_used() and seq_buf_used()
instead of len") changed the tracing code to use trace_seq_used() and
seq_buf_used() instead of using the seq_buf len directly to avoid
overflow issues, but missed a spot in seq_buf_to_user() that makes use
of s->len.
Cleaned up the code a bit as well per suggestion of Steve Rostedt.
Link: http://lkml.kernel.org/r/1447703848-2951-1-git-send-email-jsnitsel@redhat.com
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace/trace_events.h')
0 files changed, 0 insertions, 0 deletions