trace-record: wrong refferencing
PATCH 1/1 trace-record: wrong refferencing
hi,
looks like bug this time :)
wbr,
jirka
Signed-off-by Jiri Olsa <[email protected]>
trace-record.c +1 -1
@@ -116,7 +116,7 @@ struct tracecmd_recorder *tracecmd_create_recorder(const char *file, int cpu)int fd; fd =open (file,O_WRONLY |O_CREAT |O_TRUNC |O_LARGEFILE ,0644 ); -if (recorder->fd <0 ) +if (fd <0 )return NULL ; recorder =tracecmd_create_recorder_fd (fd, cpu);
Steven Rostedt
AppliedQuoted 3 lines · Jiri Olsa
hi,
looks like bug this time :)
Indeed it is.
Applied, thanks!
-- Steve
Quoted 19 lines
wbr,
jirkaSigned-off-by Jiri Olsa <[email protected]>trace-record.c +1
-1@@ -116,7 +116,7 @@ struct tracecmd_recorder *tracecmd_create_recorder(const char *file, int cpu)int fd; fd =open (file,O_WRONLY |O_CREAT |O_TRUNC |O_LARGEFILE ,0644 ); -if (recorder->fd <0 ) +if (fd <0 )return NULL ; recorder =tracecmd_create_recorder_fd (fd, cpu);