]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: dss: Fix refcount leak bugs
authorLiang He <windhl@126.com>
Fri, 22 Jul 2022 14:43:48 +0000 (22:43 +0800)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 9 Sep 2022 13:23:14 +0000 (16:23 +0300)
commit4f4d6f476dbf0ce774e684d942b7ca70844d9b78
tree575643f57c509cfede3bfe21297eea224ee6e077
parentfd921f73c8d0562b107516f7f619788d8b4a6be6
drm/omap: dss: Fix refcount leak bugs

In dss_init_ports() and __dss_uninit_ports(), we should call
of_node_put() for the reference returned by of_graph_get_port_by_id()
in fail path or when it is not used anymore.

Fixes: 955236d04798 ("drm: omap: use common OF graph helpers")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220722144348.1306569-1-windhl@126.com
drivers/gpu/drm/omapdrm/dss/dss.c