aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac802154/main.c')
-rw-r--r--net/mac802154/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c
index 68b9667323ec..08cb32dc8fd3 100644
--- a/net/mac802154/main.c
+++ b/net/mac802154/main.c
@@ -167,13 +167,15 @@ int ieee802154_register_hw(struct ieee802154_hw *hw)
167 if (IS_ERR(dev)) { 167 if (IS_ERR(dev)) {
168 rtnl_unlock(); 168 rtnl_unlock();
169 rc = PTR_ERR(dev); 169 rc = PTR_ERR(dev);
170 goto out_wq; 170 goto out_phy;
171 } 171 }
172 172
173 rtnl_unlock(); 173 rtnl_unlock();
174 174
175 return 0; 175 return 0;
176 176
177out_phy:
178 wpan_phy_unregister(local->phy);
177out_wq: 179out_wq:
178 destroy_workqueue(local->workqueue); 180 destroy_workqueue(local->workqueue);
179out: 181out: