Skip to content
Unverified Commit fbcf67ce authored by Rajvi Jingar's avatar Rajvi Jingar Committed by Ilpo Järvinen
Browse files

platform/x86/intel/pmc: Fix hang in pmc_core_send_ltr_ignore()



For input value 0, PMC stays unassigned which causes crash while trying
to access PMC for register read/write. Include LTR index 0 in pmc_index
and ltr_index calculation.

Fixes: 2bcef452 ("platform/x86:intel/pmc: Enable debugfs multiple PMC support")
Signed-off-by: default avatarRajvi Jingar <rajvi.jingar@linux.intel.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231216011650.1973941-1-rajvi.jingar@linux.intel.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 66e92e23
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment