projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf1a29
)
tools lib traceevent: test correct variable after allocation
author
Sasha Levin
<
[email protected]
>
Fri, 21 Dec 2012 20:00:58 +0000
(15:00 -0500)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 24 Jan 2013 19:40:16 +0000
(16:40 -0300)
we've tested the wrong variable for allocation failure, fix it to
test the right one.
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Sasha Levin <
[email protected]
>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/lib/traceevent/event-parse.c
patch
|
blob
|
history
diff --git
a/tools/lib/traceevent/event-parse.c
b/tools/lib/traceevent/event-parse.c
index 5a824e355d04d61a694853d285078effa2e2985e..7538a1f9c55715f20d11cb9d821c00b23d87554f 100644
(file)
--- a/
tools/lib/traceevent/event-parse.c
+++ b/
tools/lib/traceevent/event-parse.c
@@
-2481,7
+2481,7
@@
process_dynamic_array(struct event_format *event, struct print_arg *arg, char **
free_token(token);
arg = alloc_arg();
- if (!
field
) {
+ if (!
arg
) {
do_warning("%s: not enough memory!", __func__);
*tok = NULL;
return EVENT_ERROR;