summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-12 23:20:01 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-07-12 23:22:24 +0200
commitc91756d651ebbcb2abe69f782e99a478eb865e78 (patch)
tree0580cf73825c7ef3117f414374aadda8f81bb3bd /ubus.c
parent70dd0c05d1f06f6d9cec558227224e96224583eb (diff)
fix device_lock/device_unlock imbalance in the hotplug device handling
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubus.c b/ubus.c
index ee4b031..742cc43 100644
--- a/ubus.c
+++ b/ubus.c
@@ -563,9 +563,9 @@ netifd_iface_handle_device(struct ubus_context *ctx, struct ubus_object *obj,
return UBUS_STATUS_NOT_FOUND;
if (add)
- return interface_add_link(iface, dev);
+ ret = interface_add_link(iface, dev);
else
- return interface_remove_link(iface, dev);
+ ret = interface_remove_link(iface, dev);
device_unlock();