diff options
| author | Sudeep Holla <sudeep.holla@kernel.org> | 2026-07-22 18:35:20 +0100 |
|---|---|---|
| committer | Sudeep Holla <sudeep.holla@kernel.org> | 2026-07-22 20:33:43 +0100 |
| commit | 2224b622260ba590ab56ea1585d6bf7610be25b2 (patch) | |
| tree | f284bf47063c83972e725e8834e7496ca2e9dc43 /tools/perf/scripts/python | |
| parent | 2c4097e6c4aed276c5e9ec2ab331ab397ea780bf (diff) | |
firmware: arm_scmi: Roll back partial protocol table registration
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.
Fixes: 2858f6e5f064 ("firmware: arm_scmi: Add multiple protocols registration support")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://patch.msgid.link/20260722173521.2184378-1-sudeep.holla@kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
