aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJernej Skrabec <[email protected]>2018-07-10 22:35:00 +0200
committerMaxime Ripard <[email protected]>2018-07-11 09:53:21 +0200
commit4a068c5c17e8e33518de0b102c0d23ed3615286b (patch)
treef02e5ee0d1f1c268d8b2a4f6009d9ca450b1c35a /tools/perf/util/trace-event-scripting.c
parent7a6677753413440781f07e372fd6f06a4b589c88 (diff)
drm/sun4i: DW HDMI: Release nodes if error happens during CRTC search
If error happens in sun8i_dw_hdmi_find_possible_crtcs(), nodes are not released with of_node_put() before returning. Fix that by calling of_node_put() when necessary. While on it, clean up the code by using of_graph_get_remote_node() which also lowers number of cases where error handling has to be performed. Fixes: 57e23de02f48 ("drm/sun4i: DW HDMI: Expand algorithm for possible crtcs") Reviewed-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions