greybus: arche-platform: Add missing of_node_put() in arche_platform_change_state()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 16:37:20 +0000 (16:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2016 13:51:00 +0000 (15:51 +0200)
commit25633d1f5dd7ea35c77aae12c039a80e46abec01
tree7fb5cb1ef5c15754daa658b4f9d0045c2601ad8a
parentcf55902b9c306ed259eb57ff111a0c152620f4a6
greybus: arche-platform: Add missing of_node_put() in arche_platform_change_state()

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@huawei.com>
Acked-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-platform.c