Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

OMAPDSS: Fix omap_dss_find_output_by_port_node() port refcount decrement

Fix omap_dss_find_output_by_port_node() port parameter refcount
decrementation. The only user of dss_of_port_get_parent_device()
function is omap_dss_find_output_by_port_node() and it assumes the
refcount of the port parameter is not decremented by the call.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Jyri Sarha and committed by
Tomi Valkeinen
6266f4b1 2b55cb3b

+1 -1
+1 -1
drivers/video/fbdev/omap2/dss/dss-of.c
··· 96 96 if (!port) 97 97 return NULL; 98 98 99 - np = of_get_next_parent(port); 99 + np = of_get_parent(port); 100 100 101 101 for (i = 0; i < 2 && np; ++i) { 102 102 struct property *prop;