Re: [PATCH v3 06/24] drm/sun4i: Fix releasing node when enumerating enpoints

Chen-Yu Tsai
2018-06-28T01:53:36Z

On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec <jernej.skrabec-gGgVlfcn5nU@public.gmane.org> wrote:
> sun4i_drv_add_endpoints() has a memory leak since it uses of_node_put()
> when remote is equal to NULL and does nothing when remote has a valid
> pointer.
>
> Invert the logic to fix memory leak.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec-gGgVlfcn5nU@public.gmane.org>

Given this is a fix, it should have Fixes and stable tags.

ChenYu