commit | 0cb96b5749bf500f3612cda52fc98eb795fcd62d | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Tue Dec 03 23:51:22 2019 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Dec 04 16:56:42 2019 -0800 |
tree | f688aa67d6d94fa0a5656999e4903d5ad9b21e7f | |
parent | ffac2027e18f006f42630f2e01a8a9bd8dc664b5 [diff] |
net: sfp: fix unbind When unbinding, we don't correctly tear down the module state, leaving (for example) the hwmon registration behind. Ensure everything is properly removed by sending a remove event at unbind. Fixes: 6b0da5c9c1a3 ("net: sfp: track upstream's attachment state in state machine") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>