Johan Hovold 3ae30f4ce6 of_mdio: fix device reference leak in of_phy_find_device
Make sure to drop the reference taken by bus_find_device() before
returning NULL from of_phy_find_device() when the found device is not a
PHY.

Fixes: 6ed742363b9c ("of: of_mdio: Ensure mdio device is a PHY")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-17 12:05:04 -05:00
..
2016-09-16 09:34:14 +01:00
2016-09-23 09:35:16 +02:00
2016-05-24 11:00:20 -07:00
2016-09-09 14:59:09 +01:00
2016-07-30 11:32:01 -07:00
2014-11-04 13:29:38 +00:00