Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: tracing: consolidate documents blktrace: pass the right pointer to kfree() tracing/syscalls: use a dedicated file header tracing: append a comma to INIT_FTRACE_GRAPH
This commit is contained in:
@@ -1377,12 +1377,12 @@ static int blk_trace_str2mask(const char *str)
|
||||
{
|
||||
int i;
|
||||
int mask = 0;
|
||||
char *s, *token;
|
||||
char *buf, *s, *token;
|
||||
|
||||
s = kstrdup(str, GFP_KERNEL);
|
||||
if (s == NULL)
|
||||
buf = kstrdup(str, GFP_KERNEL);
|
||||
if (buf == NULL)
|
||||
return -ENOMEM;
|
||||
s = strstrip(s);
|
||||
s = strstrip(buf);
|
||||
|
||||
while (1) {
|
||||
token = strsep(&s, ",");
|
||||
@@ -1403,7 +1403,7 @@ static int blk_trace_str2mask(const char *str)
|
||||
break;
|
||||
}
|
||||
}
|
||||
kfree(s);
|
||||
kfree(buf);
|
||||
|
||||
return mask;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <trace/syscall.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/ftrace.h>
|
||||
#include <asm/syscall.h>
|
||||
|
||||
#include "trace_output.h"
|
||||
|
||||
Reference in New Issue
Block a user