diff options
| author | 2026-07-17 16:03:35 +0800 | |
|---|---|---|
| committer | 2026-08-10 15:05:47 +0200 | |
| commit | 91787047b1dc52b1fee68b07f79af70aae5fce47 (patch) | |
| tree | a95149c10a0166030f742fae253adf5c011d976d /scripts/Makefile.thinlto | |
| parent | perf/x86/intel/pt: Fix stop/start with no update (diff) | |
perf/x86: Unregister PMI handler on PMU init failure
Fix an NMI handler leak in init_hw_perf_events(). When PMU
initialization fails after register_nmi_handler(), the error path
exits without calling unregister_nmi_handler(), leaving a stale
NMI_LOCAL "PMI" handler registered. Add the missing call before
clearing x86_pmu state.
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Thomas Falcon <thomas.falcon@intel.com>
Reviewed-by: Zide Chen <zide.chen@intel.com>
Link: https://patch.msgid.link/20260717080342.1879573-2-dapeng1.mi@linux.intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
