lkml.org 
[lkml]   [2011]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/3 v2] ftrace: Fix possible undefined return code
    From: GuoWen Li <guowen.li.linux@gmail.com>

    kernel/trace/ftrace.c: In function 'ftrace_regex_write.clone.15':
    kernel/trace/ftrace.c:2743:6: warning: 'ret' may be used uninitialized in this
    function

    Signed-off-by: GuoWen Li <guowen.li.linux@gmail.com>
    Link: http://lkml.kernel.org/r/201106011918.47939.guowen.li.linux@gmail.com
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    kernel/trace/ftrace.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
    index 1ee417f..204b3eb 100644
    --- a/kernel/trace/ftrace.c
    +++ b/kernel/trace/ftrace.c
    @@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash *hash,
    {
    char *func, *command, *next = buff;
    struct ftrace_func_command *p;
    - int ret;
    + int ret = -EINVAL;

    func = strsep(&next, ":");

    --
    1.7.4.4



    \
     
     \ /
      Last update: 2011-06-07 23:33    [W:0.050 / U:30.484 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site