From c91756d651ebbcb2abe69f782e99a478eb865e78 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 12 Jul 2012 23:20:01 +0200 Subject: [PATCH] fix device_lock/device_unlock imbalance in the hotplug device handling --- ubus.c | 4 ++-- 1 file 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(); -- 2.25.1