]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: add missing dsa_switch mdiobus remove
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:40:25 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:07 +0000 (04:56 -0700)
commit24a1cb179da96b183fe5c7339f2cb149cf80b650
tree7c45ef34a509f1d1bba2e0ab8d892ab0ed0a07a4
parentcfc9a92bb3d4fabebd9a33ac330550be25ea0935
net: dsa: add missing dsa_switch mdiobus remove

To prevent memory leakage on unbinding, add missing mdiobus unregister
and unallocation calls.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c