Re: [PATCH] drm/mcde: Fix refcount leak in mcde_dsi_bind
From: Linus Walleij
Date: Mon Jun 27 2022 - 03:59:49 EST
On Wed, May 25, 2022 at 1:54 PM Miaoqian Lin <linmq006@xxxxxxxxx> wrote:
> Every iteration of for_each_available_child_of_node() decrements
> the reference counter of the previous node. There is no decrement
> when break out from the loop and results in refcount leak.
> Add missing of_node_put() to fix this.
>
> Fixes: 5fc537bfd000 ("drm/mcde: Add new driver for ST-Ericsson MCDE")
> Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>
Patch applied for next as nonurgent fix.
Yours,
Linus Walleij