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

Johan Hovold johan at kernel.org
Mon Oct 17 16:51:17 UTC 2016


On Mon, Oct 17, 2016 at 04:37:20PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1 at huawei.com>
> 
> 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 at huawei.com>

This code is going away eventually, but still.

Acked-by: Johan Hovold <johan at kernel.org>

Thanks,
Johan


More information about the devel mailing list