From 3130d87bd97dbf82f868a9507d60f17c60888c8e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 19 Oct 2011 17:32:01 +0200 Subject: [PATCH] fix device_lock --- device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.c b/device.c index 0a33f67..717993a 100644 --- a/device.c +++ b/device.c @@ -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); -- 2.25.1