drm/imx/dcss: Add missing of_node_put() in fail path
stable inclusion from stable-v5.10.134 commit 36f1d9c607f9457e2d8ff26eb96eb40db74b92fd category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5ZVR7 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=36f1d9c607f9457e2d8ff26eb96eb40db74b92fd -------------------------------- [ Upstream commit 02c87df2 ] 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: 9021c317 ("drm/imx: Add initial support for DCSS on iMX8MQ") Signed-off-by: NLiang He <windhl@126.com> Reviewed-by: NLaurentiu Palcu <laurentiu.palcu@oss.nxp.com> Signed-off-by: NLaurentiu Palcu <laurentiu.palcu@oss.nxp.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220714081337.374761-1-windhl@126.comSigned-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录