]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-oxnas: fix of-node leak
authorJohan Hovold <johan@kernel.org>
Mon, 2 Jan 2017 11:56:02 +0000 (12:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2017 14:33:00 +0000 (09:33 -0500)
commitcf2ce4e340b0fbebea5aa854ad1822469766377b
tree21d46677a891982becb2451e913327215c8629c4
parent440ba907b3c66061df0d56499b0249ac139d3925
net: stmmac: dwmac-oxnas: fix of-node leak

Use the syscon lookup-by-phandle helper so that the reference taken by
of_parse_phandle() is released when done with the node.

Fixes: 0241e9c45236 ("net: stmmac: Add OXNAS Glue Driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-oxnas.c