swconfig: fix lock imbalance in unregister_switch()
[openwrt/staging/florian.git] / target / linux / generic-2.6 / files / drivers / net / phy / swconfig.c
index fa916982f0894c82ebbd89f93b9a7d8b82b07754..dea8e78b79b4fd61da2a32427d92811c77648206 100644 (file)
@@ -886,6 +886,7 @@ unregister_switch(struct switch_dev *dev)
        swconfig_lock();
        list_del(&dev->dev_list);
        swconfig_unlock();
+       spin_unlock(&dev->lock);
 }
 EXPORT_SYMBOL_GPL(unregister_switch);