]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
net: dsa: fix fixed-link-phy device leaks
authorJohan Hovold <johan@kernel.org>
Thu, 24 Nov 2016 18:21:27 +0000 (19:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2016 01:01:15 +0000 (20:01 -0500)
commitfd05d7b18cec1af043990c4b3aabc6780575375c
treeb7820844a9aac567f12a48550b3cd3639075030b
parentc9bd28233b6d0d82ac3ba0215723be0a8262c39c
net: dsa: fix fixed-link-phy device leaks

Make sure to drop the reference taken by of_phy_find_device() when
registering and deregistering the fixed-link PHY-device.

Fixes: 39b0c705195e ("net: dsa: Allow configuration of CPU & DSA port
speeds/duplex")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c