]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: cleanup resources upon module removal
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 7 Dec 2015 12:57:33 +0000 (13:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 21:35:50 +0000 (16:35 -0500)
commit3c6631aa5573e20c7cd939d9c5d7de1a65317304
tree294a7a7452684e626f7cf06f92f0e237e87e3a53
parent0cfa337e72d6585bdd1b73d9483d1f48597a7dd9
net: dsa: cleanup resources upon module removal

Make sure that we unassign the master_netdev dsa_ptr to make the packet
processing go through the regular Ethernet receive path.

Suggested-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