diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-19 17:32:01 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-19 17:32:01 +0200 |
commit | 3130d87bd97dbf82f868a9507d60f17c60888c8e (patch) | |
tree | 7d35aca5d7999355ca2cf8bb8f861116353d8b07 | |
parent | 3ff220f1861f76ddfeb1aebc61ffbaf14b6d60df (diff) |
fix device_lock
-rw-r--r-- | device.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -403,7 +403,7 @@ void device_add_user(struct device_user *dep, struct device *dev) static void __device_free_unused(struct device *dev) { - if (!list_empty(&dev->users) || dev->current_config || config_init) + if (!list_empty(&dev->users) || dev->current_config || __devlock) return; device_free(dev); |