summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRohit Gupta <rohgup@codeaurora.org>2015-01-07 09:56:22 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:22:24 -0700
commit11ff15ea438cd77dafc54dde22a84f50a38ed4c2 (patch)
tree54a9d93d17e0b5780db024f65fcc415b1bf5ce7a /include
parenta47233f55bf1097ef1685f0f08a0a95147e2f642 (diff)
soc: qcom: msm_perf: Fix a race condition in hotplug callback
msm_performance relies on userspace to initialize cluster related variables such as num_clusters, managed_cpus etc. Once num_clusters is set the cluster related data structures are initialized and userspace is allowed to set them. However there could be a race where between num_clusters being set and the cluster data structures being allocated, there is a hotplug activity which would invoke the hotplug callback which in turn tries to access managed_cpus. managed_cpus might not have been allocated by that time resulting in a NULL pointer access in the callback causing kernel panic. Change-Id: Ia40af624322a89e0c0f9598bf7eea059e6969ebe Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions