lkml.org 
[lkml]   [2012]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 30/37] ftrace: Clear bits properly in reset_iter_read()
    Date
    3.6-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Dan Carpenter <dan.carpenter@oracle.com>

    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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/kernel/trace/ftrace.c
    +++ b/kernel/trace/ftrace.c
    @@ -2358,7 +2358,7 @@ static void reset_iter_read(struct ftrac
    {
    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)



    \
     
     \ /
      Last update: 2012-12-15 02:21    [W:2.258 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site