]> asedeno.scripts.mit.edu Git - linux.git/commit
perf strbuf: Remove redundant va_end() in strbuf_addv()
authorMattias Jacobsson <2pi@mok.nu>
Sat, 29 Dec 2018 14:17:50 +0000 (15:17 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 4 Jan 2019 15:54:49 +0000 (12:54 -0300)
commit099be748865eece21362aee416c350c0b1ae34df
tree12812a6d30186fb40730355af3cc98545f2210d7
parent442b4eb3af44906fcbb526d98c314b27f8c9acf3
perf strbuf: Remove redundant va_end() in strbuf_addv()

Each call to va_copy() should have one, and only one, corresponding call
to va_end(). In strbuf_addv() some code paths result in va_end() getting
called multiple times. Remove the superfluous va_end().

Signed-off-by: Mattias Jacobsson <2pi@mok.nu>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sanskriti Sharma <sansharm@redhat.com>
Link: http://lkml.kernel.org/r/20181229141750.16945-1-2pi@mok.nu
Fixes: ce49d8436cff ("perf strbuf: Match va_{add,copy} with va_end")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/strbuf.c