mac802154: Follow the number of associated devices
[linux-2.6-microblaze.git] / net / ieee802154 / core.c
index 2d6fe45..60e8fff 100644 (file)
@@ -212,6 +212,8 @@ static void cfg802154_free_peer_structures(struct wpan_dev *wpan_dev)
                kfree(child);
        }
 
+       wpan_dev->nchildren = 0;
+
        mutex_unlock(&wpan_dev->association_lock);
 }