Re: [PATCH] firmware: arm_scmi: Fix NULL dereference on notify error path
From: Sudeep Holla
Date: Sun Mar 08 2026 - 08:56:13 EST
On Thu, 05 Mar 2026 13:10:11 +0000, Cristian Marussi wrote:
> Since commit b5daf93b809d1 ("firmware: arm_scmi: Avoid notifier
> registration for unsupported events") the call chains leading to the helper
> __scmi_event_handler_get_ops expect an ERR_PTR to be returned on failure to
> get an handler for the requested event key, while the current helper can
> still return a NULL when no handler could be found or created.
>
> Fix by forcing an ERR_PTR return value when the handler reference is NULL.
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi/fixes), thanks!
[1/1] firmware: arm_scmi: Fix NULL dereference on notify error path
https://git.kernel.org/sudeep.holla/c/555317d61001
--
Regards,
Sudeep