[PATCH 1/2] drm/mediatek: Fix child node refcount handling in early exit
Chen-Yu Tsai
wenst at chromium.org
Mon Oct 28 07:00:29 UTC 2024
On Sat, Oct 12, 2024 at 3:22 AM Javier Carrasco
<javier.carrasco.cruz at gmail.com> wrote:
>
> Early exits (goto, break, return) from for_each_child_of_node() required
> an explicit call to of_node_put(), which was not introduced with the
> break if cnt == MAX_CRTC.
>
> Add the missing of_node_put() before the break.
>
> Cc: stable at vger.kernel.org
> Fixes: d761b9450e31 ("drm/mediatek: Add cnt checking for coverity issue")
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz at gmail.com>
Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>
More information about the dri-devel
mailing list