Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166428
b: refs/heads/master
c: 1eb90f1
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Sep 22, 2009
1 parent 91fdaa7 commit 047a44b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ba7978e98a3ff92cebfb0f31a02c309e3ffa1fe
refs/heads/master: 1eb90f138b3fb4cc15f3acec94aa788e846269f7
10 changes: 6 additions & 4 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2561,12 +2561,12 @@ ftrace_graph_write(struct file *file, const char __user *ubuf,

if (ftrace_graph_count >= FTRACE_GRAPH_MAX_FUNCS) {
ret = -EBUSY;
goto out;
goto out_unlock;
}

if (trace_parser_get_init(&parser, FTRACE_BUFF_MAX)) {
ret = -ENOMEM;
goto out;
goto out_unlock;
}

read = trace_get_user(&parser, ubuf, cnt, ppos);
Expand All @@ -2578,12 +2578,14 @@ ftrace_graph_write(struct file *file, const char __user *ubuf,
ret = ftrace_set_func(ftrace_graph_funcs, &ftrace_graph_count,
parser.buffer);
if (ret)
goto out;
goto out_free;
}

ret = read;
out:

out_free:
trace_parser_put(&parser);
out_unlock:
mutex_unlock(&graph_lock);

return ret;
Expand Down

0 comments on commit 047a44b

Please sign in to comment.