mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
tracing: Fix trace_seq_bitmask() to start at current position
In trace_seq_bitmask() it calls bitmap_scnprintf() not from the current position of the trace_seq buffer (s->buffer + s->len), but instead from the beginning of the buffer (s->buffer). Luckily, the only user of this "ipi_raise tracepoint" uses it as the first parameter, and as such, the start of the temp buffer in include/trace/ftrace.h (see __get_bitmask()). Reported-by: Petr Mladek <pmladek@suse.cz> Reviewed-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
dbcf3e06ca
commit
e400a40cff
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ int trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
|
||||||
if (s->full || !len)
|
if (s->full || !len)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ret = bitmap_scnprintf(s->buffer, len, maskp, nmaskbits);
|
ret = bitmap_scnprintf(s->buffer + s->len, len, maskp, nmaskbits);
|
||||||
s->len += ret;
|
s->len += ret;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue