projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dadc9f9
)
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:49:05 +0000
(10:49 -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 9f8e2e11020a7f34aa4e93e69daea83121a7963f..f88ea18d2d9a00faa24bb2b53b2a8691a69e5743 100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-2058,7
+2058,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)