drivers: soc: qcom: rimps_memlat: check cpu in idle path
In the idle notification, driver saves the mon pmu events
to pmu cache memory. Current implementation loops through
all the monitors in the group without checking if the given
cpu is present in the mon cpumask or not. If the cpu is not
present in mon cpumask, the macro to_mon_ev_data in
save_mon_pmu_events function can return a wrong address
to mon_data which can result in crash.
Check if cpu is present in mon cpumask before storing the mon
pmu events.
Change-Id: Ia2d674fab401dd83f7ce7410607aa4a665851871
Signed-off-by:
Santosh Mardi <gsantosh@codeaurora.org>
Loading
Please register or sign in to comment