diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-12 23:20:01 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-12 23:22:24 +0200 |
commit | c91756d651ebbcb2abe69f782e99a478eb865e78 (patch) | |
tree | 0580cf73825c7ef3117f414374aadda8f81bb3bd /ubus.c | |
parent | 70dd0c05d1f06f6d9cec558227224e96224583eb (diff) |
fix device_lock/device_unlock imbalance in the hotplug device handling
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |