OMAPDSS: Fix node refcount leak in omapdss_of_get_next_port()
authorJyri Sarha <jsarha@ti.com>
Fri, 7 Aug 2015 11:04:29 +0000 (14:04 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 10 Aug 2015 09:22:35 +0000 (12:22 +0300)
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>
drivers/video/fbdev/omap2/dss/dss-of.c

index 928ee639c0c19ba3a2346737c41b44f38e82c0b5..c8c065d92b592437e06c1cf47ec177a0dabb7066 100644 (file)
@@ -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;