提交 aef00c15 编写于 作者: K Koen Zandberg 提交者: Marcel Holtmann

mac802154: Fixes kernel oops when unloading a radio driver

Destroying the workqueue before unregistering the net device caused a
kernel oops
Signed-off-by: NKoen Zandberg <koen@bergzand.net>
Acked-by: NAlexander Aring <aar@pengutronix.de>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 6367551f
...@@ -218,7 +218,6 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw) ...@@ -218,7 +218,6 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw)
tasklet_kill(&local->tasklet); tasklet_kill(&local->tasklet);
flush_workqueue(local->workqueue); flush_workqueue(local->workqueue);
destroy_workqueue(local->workqueue);
rtnl_lock(); rtnl_lock();
...@@ -226,6 +225,7 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw) ...@@ -226,6 +225,7 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw)
rtnl_unlock(); rtnl_unlock();
destroy_workqueue(local->workqueue);
wpan_phy_unregister(local->phy); wpan_phy_unregister(local->phy);
} }
EXPORT_SYMBOL(ieee802154_unregister_hw); EXPORT_SYMBOL(ieee802154_unregister_hw);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册