projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9af56f
)
ftrace: iter ctrl fix
author
Ingo Molnar
<mingo@elte.hu>
Mon, 12 May 2008 19:20:53 +0000
(21:20 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 23 May 2008 19:08:12 +0000
(21:08 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index 3ae17e254fc304aa37f95ee0e18fe77fe772afeb..688b4cf72d998b31eae23d2e9b897f05356cffb1 100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-1920,6
+1920,11
@@
tracing_iter_ctrl_write(struct file *filp, const char __user *ubuf,
break;
}
}
+ /*
+ * If no option could be set, return an error:
+ */
+ if (!trace_options[i])
+ return -EINVAL;
filp->f_pos += cnt;