Commit 36f1d9c6 authored by Liang He's avatar Liang He Committed by Greg Kroah-Hartman
Browse files

drm/imx/dcss: Add missing of_node_put() in fail path



[ 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: default avatarLiang He <windhl@126.com>
Reviewed-by: default avatarLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: default avatarLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220714081337.374761-1-windhl@126.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 665cbe91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment