[PATCH 1/2] firmware: arm_scmi: Roll back partial protocol table registration
Sudeep Holla
sudeep.holla at kernel.org
Fri Jul 24 02:33:42 PDT 2026
On Wed, 22 Jul 2026 18:35:20 +0100, Sudeep Holla wrote:
> scmi_protocol_table_register() can leave earlier requests registered when
> a later entry in the same ID table fails. Each request retains a pointer
> to the driver's ID table, so a failed module load can leave a dangling
> pointer after the module storage is released.
>
> Unrequest only the successfully registered prefix, in reverse order,
> before returning the failure. Leave the failed entry and the remaining
> entries untouched because matching requests can be owned by another
> driver.
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!
[1/2] firmware: arm_scmi: Roll back partial protocol table registration
https://git.kernel.org/sudeep.holla/c/2224b622260b
[2/2] firmware: arm_scmi: Unrequest devices if driver registration fails
https://git.kernel.org/sudeep.holla/c/9f7cd6a62aa7
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list