mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
coresight: platform: Fix refcounting for graph nodes
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6575fdb746
commit
a0f9992c80
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue