Re: [PATCH v3 2/4] rv/reactors: propagate rv_register_reactor() error from reactor init
From: Nam Cao
Date: Mon Aug 17 2026 - 06:54:41 EST
wen.yang@xxxxxxxxx writes:
> From: Wen Yang <wen.yang@xxxxxxxxx>
>
> Both register_react_printk() and register_react_panic() ignore the
> return value of rv_register_reactor() and always return 0. If the
> registration fails (e.g. a duplicate reactor name), the init functions
> silently report success even though the reactor was not registered.
>
> Propagate the error from rv_register_reactor() so a failed registration
> is reported instead of being silently ignored.
>
> Suggested-by: Gabriele Monaco <gmonaco@xxxxxxxxxx>
> Reviewed-by: Gabriele Monaco <gmonaco@xxxxxxxxxx>
> Signed-off-by: Wen Yang <wen.yang@xxxxxxxxx>
Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>