mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 04:03:58 +08:00
OMAPDSS: Fix node refcount leak in omapdss_of_get_next_port()
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>
This commit is contained in:
parent
2701fa0864
commit
2b55cb3b04
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user