Skip to content

Commit

Permalink
OMAPDSS: Fix node refcount leak in omapdss_of_get_next_port()
Browse files Browse the repository at this point in the history
Fix node refcount leak in omapdss_of_get_next_port().

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Jyri Sarha authored and Tomi Valkeinen committed Aug 10, 2015
1 parent 2701fa0 commit 2b55cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/fbdev/omap2/dss/dss-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ omapdss_of_get_next_port(const struct device_node *parent,
}
prev = port;
} while (of_node_cmp(port->name, "port") != 0);

of_node_put(ports);
}

return port;
Expand Down

0 comments on commit 2b55cb3

Please sign in to comment.