Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c90efd1d authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 7141e265
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment