summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-04-09 11:54:30 +0900
committerNamhyung Kim <namhyung@kernel.org>2012-07-04 13:40:31 +0900
commitdeba3fb26fd1ed3235b00dccced9784a7f76ec3c (patch)
tree03708b0edc3f380e316cb130d822d377032e9d69 /sound
parent0fc45ef5202a34b5862ca246740e6ab50bc3e3e1 (diff)
tools lib traceevent: Introduce extend_token()
The __read_token() function has some duplicated code to handle internal buffer overflow. Factor them out to new extend_token(). According to the man pages of realloc/free(3), they can handle NULL pointer input so that it can be ended up to compact the code. Also handle error path correctly. Signed-off-by: Namhyung Kim <namhyung.kim@lge.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Arnaldo Carvalho de Melo <acme@infradead.org> Cc: Borislav Petkov <bp@alien8.de> Cc: David Ahern <dsahern@gmail.com> Link: http://lkml.kernel.org/r/1333940074-19052-4-git-send-email-namhyung.kim@lge.com [rostedt@goodmis.org: added some extra whitespace] Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions