mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
UPSTREAM: coresight: platform: Fix refcounting for graph nodes
(Upstream commit a0f9992c80).
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>
Bug: 140266694
Change-Id: Iec4edd914f45baa76431ee4ab2c0e67dcbe78600
Signed-off-by: Yabin Cui <yabinc@google.com>
This commit is contained in:
committed by
Yabin Cui
parent
020eba4b79
commit
488cbc828e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user