diff options
author | Jernej Skrabec <[email protected]> | 2018-06-25 14:02:46 +0200 |
---|---|---|
committer | Maxime Ripard <[email protected]> | 2018-06-27 21:43:49 +0200 |
commit | 367c359aa8637b15ee8df6335c5a29b7623966ec (patch) | |
tree | ebed159e710dd8f90e01b5b3c078c57c5dbbbbdd /tools/perf/scripts/python/syscall-counts.py | |
parent | 19f3ebed3f3612f97ee28af26d53656f5776f89a (diff) |
drm/sun4i: Fix releasing node when enumerating enpoints
sun4i_drv_add_endpoints() has a memory leak since it uses of_node_put()
when remote is equal to NULL and does nothing when remote has a valid
pointer.
Invert the logic to fix memory leak.
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/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions