summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@kernel.org>2026-07-22 18:35:21 +0100
committerSudeep Holla <sudeep.holla@kernel.org>2026-07-22 20:33:43 +0100
commit9f7cd6a62aa754ed6b48cbd5d50de40add1bcc86 (patch)
tree022e714efbb1f7528cd023a06b1b1a4787f22038 /tools/perf/scripts/python/stackcollapse.py
parent2224b622260ba590ab56ea1585d6bf7610be25b2 (diff)
firmware: arm_scmi: Unrequest devices if driver registration fails
scmi_driver_register() requests protocol devices before registering the driver. If driver_register() fails, those requests remain in the global IDR and retain pointers to the module's ID table. Once the failed module load releases that storage, later request matching or SCMI device creation can dereference the stale pointers. Unrequest the complete protocol table before returning the registration failure. At this point table registration succeeded, so every entry is owned by the current registration attempt. Fixes: d3cd7c525fd2 ("firmware: arm_scmi: Refactor protocol device creation") Reported-by: Sashiko <sashiko-bot@kernel.org> Link: https://patch.msgid.link/20260722173521.2184378-2-sudeep.holla@kernel.org Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions