]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx/dcss: Add missing of_node_put() in fail path
authorLiang He <windhl@126.com>
Thu, 14 Jul 2022 08:13:37 +0000 (16:13 +0800)
committerLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Wed, 20 Jul 2022 07:12:15 +0000 (10:12 +0300)
commit51e4f87fab858a3edfe6ff7ff05cd5213ec8808e
tree459e1f781c90813b8808ab4f8ad40b6697f87b10
parent52c854c0f4551ba4a66cb7ad42f47c47c0f9f642
drm/imx/dcss: Add missing of_node_put() in fail path

In dcss_dev_create() and dcss_dev_destroy(), we should call of_node_put()
in fail path or before the dcss's destroy as of_graph_get_port_by_id() has
increased the refcount.

Fixes: a285755a2b71 ("drm/imx: Add initial support for DCSS on iMX8MQ")
Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220714081337.374761-1-windhl@126.com
drivers/gpu/drm/imx/dcss/dcss-dev.c