]> git.baikalelectronics.ru Git - kernel.git/commit
net: fsl/fman: fix phydev reference leak
authorJohan Hovold <johan@kernel.org>
Thu, 24 Nov 2016 18:21:29 +0000 (19:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2016 01:01:15 +0000 (20:01 -0500)
commit4e430b59965291a30499335f091cf16a14d72690
tree9fb4e0eeba1a2b5acb836f04c60c9116d67a50b0
parent2fc5b35e607fb7c1dd0b3a5d591116b91d045f26
net: fsl/fman: fix phydev reference leak

Make sure to drop the reference taken by of_phy_find_device() during
initialisation when later freeing the struct fman_mac.

Fixes: 458982aa3cd0 ("fsl/fman: Add FMan MAC support")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_memac.c