]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/mac802154/ieee802154_dev.c
Merge tag 'nfs-for-3.8-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[karo-tx-linux.git] / net / mac802154 / ieee802154_dev.c
index e748aed290aaedee649bf89274b1fe15e8946c35..b7c7f815deae81068b073636dc2a0978c1ab3c53 100644 (file)
@@ -224,9 +224,9 @@ void ieee802154_free_device(struct ieee802154_dev *hw)
 
        BUG_ON(!list_empty(&priv->slaves));
 
-       wpan_phy_free(priv->phy);
-
        mutex_destroy(&priv->slaves_mtx);
+
+       wpan_phy_free(priv->phy);
 }
 EXPORT_SYMBOL(ieee802154_free_device);