net: phy: Add missing of_node_put() in xgmiitorgmii_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Sun, 21 Aug 2016 22:46:15 +0000 (22:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 01:07:47 +0000 (18:07 -0700)
commit4d55d014c53d0d011d4cec85fa0c248a97e8eb06
tree5643e2bddbd8f10e3df65105c8782d5c32fa0f4b
parent6f0b826da4a33e83501d6c1dc977afa0f5f7166f
net: phy: Add missing of_node_put() in xgmiitorgmii_probe()

This node pointer is returned by of_parse_phandle() 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 <weiyj.lk@gmail.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/xilinx_gmii2rgmii.c