lkml.org 
[lkml]   [2009]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 3/4] gcov: add gcov profiling infrastructure
    node->parent is always NULL, causing NULL-pointer dereference in
    remove_node.

    Could you please include something like this?

    ---
    kernel/gcov/fs.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/kernel/gcov/fs.c b/kernel/gcov/fs.c
    index 0084492..6675c82 100644
    --- a/kernel/gcov/fs.c
    +++ b/kernel/gcov/fs.c
    @@ -374,6 +374,7 @@ static struct gcov_node *new_node(struct gcov_node *parent,
    return NULL;
    }
    init_node(node, info, name);
    + node->parent = parent;
    /* Differentiate between gcov data file nodes and directory nodes. */
    if (info) {
    node->dentry = debugfs_create_file(deskew(node->name), 0600,
    --
    1.5.6.3




    \
     
     \ /
      Last update: 2009-02-26 03:43    [W:0.028 / U:31.400 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site