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

Commit 66ed4d93 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

msm-core: Fix race with userspace updating power numbers



When the user space application updates the existing leakage values, the
existing structures are freed and updated. If the polling worker thread is
executed at the same time, the worker thread could end up accessing memory
locations that were freed earlier.

Fix by using critical sections around free/update of the data structures.

Change-Id: I611585842c420653c925f83959dac9710b50ee2b
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 42162e39
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