ucode: fix an issue in exception handling improvement for ubus/uloop

Remove an uloop_end() call from a user cb that wasn't there before

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-07-06 22:05:03 +02:00
parent d2b2670937
commit 77b9393d2f

View file

@ -51,15 +51,6 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
uc_ubus_call_user_cb(uc_ubus_deferred_t *defer, int ret, uc_value_t *reply) uc_ubus_call_user_cb(uc_ubus_deferred_t *defer, int ret, uc_value_t *reply)
{ {
uc_value_t *this = ucv_get(defer->res); uc_value_t *this = ucv_get(defer->res);
@@ -587,7 +621,7 @@ uc_ubus_call_user_cb(uc_ubus_deferred_t
uc_vm_stack_push(vm, ucv_int64_new(ret));
uc_vm_stack_push(vm, ucv_get(reply));
- if (uc_vm_call(vm, true, 2) == EXCEPTION_NONE)
+ if (uc_ubus_vm_call(vm, true, 2))
ucv_put(uc_vm_stack_pop(vm));
}
@@ -623,10 +657,8 @@ uc_ubus_call_data_user_cb(struct ubus_re @@ -623,10 +657,8 @@ uc_ubus_call_data_user_cb(struct ubus_re
uc_vm_stack_push(vm, ucv_get(func)); uc_vm_stack_push(vm, ucv_get(func));
uc_vm_stack_push(vm, ucv_get(reply)); uc_vm_stack_push(vm, ucv_get(reply));