]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/fman: Add a missing 'of_node_put()' call in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 6 Nov 2017 21:53:31 +0000 (22:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 04:53:33 +0000 (13:53 +0900)
commitc7ae2c4500fdc74833f379c62d94b1dbc8cc6405
tree214f6d2841b9325cf8a88546b85e225a0548a327
parent71c0067d03a93e889135edea5c60ff187700f57c
fsl/fman: Add a missing 'of_node_put()' call in an error handling path

If 'of_phy_find_device()' fails, we must undo the previous 'of_node_get()'
call, as done the the following error handling code.

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