]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: add missing of_node_put in i2c_mux_del_adapters
authorQi Hou <qi.hou@windriver.com>
Fri, 3 Mar 2017 07:57:11 +0000 (15:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Mar 2017 11:18:39 +0000 (19:18 +0800)
commit80eae855b694634ff2384885437fcf651dc5eb21
tree1bde4655992291a8df1cbf8afb2a979452d51f1f
parentbe20197df07db889c8825ce99fa2ee700894e91c
i2c: add missing of_node_put in i2c_mux_del_adapters

commit 2e1e4949f9dfb053122785cd73540bb1e61f768b upstream.

Refcount of of_node is increased with of_node_get() in i2c_mux_add_adapter().
It must be decreased with of_node_put() in i2c_mux_del_adapters().

Signed-off-by: Qi Hou <qi.hou@windriver.com>
Reviewed-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/i2c-mux.c