lkml.org 
[lkml]   [2018]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/44] coresight: platform: Fix refcounting for graph nodes
    Date
    From: Suzuki K Poulose <suzuki.poulose@arm.com>

    The coresight driver doesn't drop the references on the
    remote endpoint/port nodes. Add the missing of_node_put()
    calls.

    Reported-by: Mathieu Poirier <mathieu.poirier@linaro.org>
    Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
    Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
    ---
    drivers/hwtracing/coresight/of_coresight.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c
    index 70205f3eae8e..28d3aef1660b 100644
    --- a/drivers/hwtracing/coresight/of_coresight.c
    +++ b/drivers/hwtracing/coresight/of_coresight.c
    @@ -168,6 +168,11 @@ static int of_coresight_parse_endpoint(struct device *dev,
    ret = 1;
    } while (0);

    + if (rparent)
    + of_node_put(rparent);
    + if (rport)
    + of_node_put(rport);
    +
    return ret;
    }

    --
    2.7.4
    \
     
     \ /
      Last update: 2018-09-20 21:23    [W:5.616 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site