Re: [PATCH -next] greybus: arche-platform: Add missing of_node_put() in arche_platform_change_state()

From: Johan Hovold
Date: Mon Oct 17 2016 - 12:51:28 EST


On Mon, Oct 17, 2016 at 04:37:20PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
>
> This node pointer is returned by of_find_compatible_node() with
> refcount incremented in this function. of_node_put() on it before
> exitting this function.
>
> This is detected by Coccinelle semantic patch.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>

This code is going away eventually, but still.

Acked-by: Johan Hovold <johan@xxxxxxxxxx>

Thanks,
Johan