]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: dsa: slave: fix fixed-link phydev leaks
authorJohan Hovold <johan@kernel.org>
Mon, 28 Nov 2016 18:25:09 +0000 (19:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 04:17:02 +0000 (23:17 -0500)
commit881eadabe71fa78c081eda3cd5701768f3778a21
treed7a3fd6644f2f711212b7e7cc7cabb113747128b
parent14cab6f6510c498c2fd55d4fd6063a91b477d2ff
net: dsa: slave: fix fixed-link phydev leaks

Make sure to deregister and free any fixed-link PHY registered using
of_phy_register_fixed_link() on slave-setup errors and on slave destroy.

Fixes: 0d8bcdd383b8 ("net: dsa: allow for more complex PHY setups")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c