Re: [PATCH 1/2] firmware: arm_scmi: Roll back partial protocol table registration

Sudeep Holla <[email protected]> Fri, 24 Jul 2026 10:33:42 +0100
Newsgroups org.kernel.vger.arm-scmi,org.infradead.lists.linux-arm-kernel
Message-ID <178488559184.2847802.3631237341330785871.b4-ty@b4>
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