diff options
| author | Hongyan Xu <getshell@seu.edu.cn> | 2026-07-29 18:32:17 +0800 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-07-30 01:43:14 +0000 |
| commit | e5954d3031fb55dd31aa59bae477d63c68e941c0 (patch) | |
| tree | 1a71ebb965358b22ec1430b73f7308674cdb7381 /tools/perf/scripts/python/bin/task-analyzer-record | |
| parent | 5d187600c4603b8f7812b12ce359a11ad7a7fd3a (diff) | |
platform/chrome: cros_ec_debugfs: Unregister panic notifier
cros_ec_debugfs_probe() registers notifier_panic with the EC panic
notifier chain. The remove path tears down debugfs and the console log,
but leaves the notifier registered. A later panic notification can call
back into the removed instance and queue work that accesses released
data.
Unregister the panic notifier before tearing down the debugfs and
console log state.
This issue was found by a static analysis tool.
Fixes: d90fa2c64d59 ("platform/chrome: cros_ec: Poll EC log on EC panic")
Signed-off-by: Hongyan Xu <getshell@seu.edu.cn>
Link: https://lore.kernel.org/r/f3ab74ef8034be63bb45a325f3d54656d658817f.1785320940.git.getshell@seu.edu.cn
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions
