]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:19:20 +0000 (17:19 +0200)
commit36f1d9c607f9457e2d8ff26eb96eb40db74b92fd
tree991451d6435ae25868a152b86c2a95f41995a00d
parent665cbe91de2f7c97c51ca8fce39aae26477c1948
drm/imx/dcss: Add missing of_node_put() in fail path

[ Upstream commit 02c87df2480ac855d88ee308ce3fa857d9bd55a8 ]

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: 9021c317b770 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/imx/dcss/dcss-dev.c