summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@kernel.org>2026-10-28 13:05:02 +0000
committerSudeep Holla <sudeep.holla@kernel.org>2026-10-28 13:57:54 +0000
commitb9bb2eb88037a3823e7abd096b54d0a07d428f90 (patch)
tree8d88f304c212ef7fd5aa8ae8205e7b674ace3b6b /tools/perf/scripts/python
parent4e3652a0ac715ba7387b072b72eaff76e761aaf9 (diff)
firmware: arm_scmi: Unregister notifier on enable failure
scmi_notifier_register() adds the caller's notifier block before enabling the corresponding event at the platform. If enablement fails, the caller receives an error and can free its notifier block. A concurrent registration can retain and later enable the handler, leaving the failed caller's block in its notification chain. Event delivery can then dereference the freed block. Remove the notifier block before dropping the handler reference when event enablement fails. Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/bug/linux-c3c9437c-ba1a-4db6-837f-cb0950d89018 Fixes: e7c215f358a3 ("firmware: arm_scmi: Add notification callbacks-registration") Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20261028130502.2999676-3-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