Commit 2b55cb3b authored by Jyri Sarha's avatar Jyri Sarha Committed by Tomi Valkeinen

OMAPDSS: Fix node refcount leak in omapdss_of_get_next_port()

Fix node refcount leak in omapdss_of_get_next_port().
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 2701fa08
...@@ -60,6 +60,8 @@ omapdss_of_get_next_port(const struct device_node *parent, ...@@ -60,6 +60,8 @@ omapdss_of_get_next_port(const struct device_node *parent,
} }
prev = port; prev = port;
} while (of_node_cmp(port->name, "port") != 0); } while (of_node_cmp(port->name, "port") != 0);
of_node_put(ports);
} }
return port; return port;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment