From 30e9a048af138b39ee0d53451da43eddd6f48fda Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 19 Oct 2012 15:48:52 +0200 Subject: fix device_lock/device_unlock imbalances --- alias.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'alias.c') diff --git a/alias.c b/alias.c index 07ed5fe..72018d4 100644 --- a/alias.c +++ b/alias.c @@ -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(); } -- cgit v1.2.3