OSDN Git Service

net: netcp: add missing of_node_put() in netcp_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Oct 2016 14:40:17 +0000 (14:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 21:21:59 +0000 (17:21 -0400)
commite2897b8238ab8fdee067cfe472dd52a3414d5716
tree9fa683967270803fdb2ef8094ab1cba421fd841e
parentf850b4a77d71a9cac513dadff91891a78c12ba05
net: netcp: add missing of_node_put() in netcp_probe()

This node pointer is returned by of_get_child_by_name() 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c