diff mbox

[1/2] OMAPDSS: dss-of: Fix node refcount leak in omapdss_of_get_next_port()

Message ID 2641bae47b15795f2a697e69c72ad1b7424d2178.1438885638.git.jsarha@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jyri Sarha Aug. 6, 2015, 6:41 p.m. UTC
Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 drivers/video/fbdev/omap2/dss/dss-of.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tomi Valkeinen Aug. 7, 2015, 10:38 a.m. UTC | #1
On 06/08/15 21:41, Jyri Sarha wrote:
> Signed-off-by: Jyri Sarha <jsarha@ti.com>

Please always fill in the patch description. In simplest cases it may be
the same as in the subject.

> ---
>  drivers/video/fbdev/omap2/dss/dss-of.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/video/fbdev/omap2/dss/dss-of.c b/drivers/video/fbdev/omap2/dss/dss-of.c
> index 928ee63..ab6ef16 100644
> --- a/drivers/video/fbdev/omap2/dss/dss-of.c
> +++ b/drivers/video/fbdev/omap2/dss/dss-of.c
> @@ -60,6 +60,7 @@ omapdss_of_get_next_port(const struct device_node *parent,
>  			}
>  			prev = port;
>  		} while (of_node_cmp(port->name, "port") != 0);
> +		of_node_put(ports);

I think a blank line is needed above of_node_put().

 Tomi
diff mbox

Patch

diff --git a/drivers/video/fbdev/omap2/dss/dss-of.c b/drivers/video/fbdev/omap2/dss/dss-of.c
index 928ee63..ab6ef16 100644
--- a/drivers/video/fbdev/omap2/dss/dss-of.c
+++ b/drivers/video/fbdev/omap2/dss/dss-of.c
@@ -60,6 +60,7 @@  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;