projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31fdb19
)
ftrace: Clear bits properly in reset_iter_read()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 9 Jun 2012 16:10:27 +0000
(19:10 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 17 Dec 2012 18:37:46 +0000
(10:37 -0800)
commit
70f77b3f7ec010ff9624c1f2e39a81babc9e2429
upstream.
There is a typo here where '&' is used instead of '|' and it turns the
statement into a noop. The original code is equivalent to:
iter->flags &= ~((1 << 2) & (1 << 4));
Link:
http://lkml.kernel.org/r/20120609161027.GD6488@elgon.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c
patch
|
blob
|
history
diff --git
a/kernel/trace/ftrace.c
b/kernel/trace/ftrace.c
index
0fa92f6
..
100b7fd
100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-2368,7
+2368,7
@@
static void reset_iter_read(struct ftrace_iterator *iter)
{
iter->pos = 0;
iter->func_pos = 0;
- iter->flags &= ~(FTRACE_ITER_PRINTALL
&
FTRACE_ITER_HASH);
+ iter->flags &= ~(FTRACE_ITER_PRINTALL
|
FTRACE_ITER_HASH);
}
static void *t_start(struct seq_file *m, loff_t *pos)