net: fs_enet: Fix an error handling path
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Fri, 10 Feb 2017 20:17:06 +0000 (21:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 03:24:31 +0000 (22:24 -0500)
commit1f8f1e89e0183e9504dfa45e9b87c44cff2e66c6
tree35e8906452a9b79882a99a154db4afeb086f630c
parentc3d8103bc0069b926887e2270e9dd1e1e8441bb4
net: fs_enet: Fix an error handling path

'of_node_put(fpi->phy_node)' should also be called if we branch to
'out_deregister_fixed_link' error handling path.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c