]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: ethernet: renesas: ravb: fix fixed-link phydev leaks
authorJohan Hovold <johan@kernel.org>
Mon, 28 Nov 2016 18:25:06 +0000 (19:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 04:17:02 +0000 (23:17 -0500)
commit9f70eb339f5246ce7be6bb41a4602ce87ebbfc4b
treeddb00c1949f001527e3c4e9419213adea72c7f6d
parent16a67eb3ec21ddb557d064a6901ec4629e96b94c
net: ethernet: renesas: ravb: fix fixed-link phydev leaks

Make sure to deregister and free any fixed-link PHY registered using
of_phy_register_fixed_link() on initialisation errors and on device
close after having disconnected the PHY.

Fixes: b4bc88a868ed ("ravb: Add fixed-link support")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c