Re: [PATCH] drm/mcde: Fix refcount leak in mcde_dsi_bind

2022-06-27 Thread Linus Walleij
On Wed, May 25, 2022 at 1:54 PM Miaoqian Lin 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. > > Fixe

[PATCH] drm/mcde: Fix refcount leak in mcde_dsi_bind

2022-05-25 Thread Miaoqian Lin
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")