diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-19 15:48:52 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-19 15:48:52 +0200 |
commit | 30e9a048af138b39ee0d53451da43eddd6f48fda (patch) | |
tree | 85015552d2e36d656cfcd0d0e5235bd6dce7a942 /alias.c | |
parent | 6653b861748719ab58e21a81e01d59d4d8afe10c (diff) |
fix device_lock/device_unlock imbalances
Diffstat (limited to 'alias.c')
-rw-r--r-- | alias.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -108,7 +108,7 @@ alias_notify_device(const char *name, struct device *dev) alias = avl_find_element(&aliases, name, alias, avl); if (!alias) - return; + goto out; alias->cleanup = !dev; if (dev) { @@ -128,6 +128,7 @@ alias_notify_device(const char *name, struct device *dev) device_broadcast_event(&alias->dev, DEV_EVENT_UPDATE_IFNAME); } +out: device_unlock(); } |