projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ff220f
)
fix device_lock
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 19 Oct 2011 15:32:01 +0000
(17:32 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 19 Oct 2011 15:32:01 +0000
(17:32 +0200)
device.c
patch
|
blob
|
history
diff --git
a/device.c
b/device.c
index 0a33f67f3de1b4eafb4c760883a157e495dbae63..717993a5f1d14b41453e9f14c9f4e9acaa1c8b6c 100644
(file)
--- 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);