summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorMukesh Ojha <mojha@codeaurora.org>2017-05-10 12:00:27 +0530
committerMukesh Ojha <mojha@codeaurora.org>2017-05-16 23:50:45 +0530
commit9021973bacc9a3614afae3764e7f0417d92a4d35 (patch)
tree1d2aee3560da26e11224f2a12aacd9a59c1d171f /tools/perf/scripts/python/call-graph-from-postgresql.py
parent9b3e8a81dcee1d1b92db6429f9abd83cc22c01f4 (diff)
coresight-remote-etm: Adds missing lock to avoid race condition
We take a lock of drvdata->mutex and further wait on a lock 'drvdata->handle->handle_lock' in below path remote_etm_disable => qmi_send_req_wait => qmi_encode_and_send_req So, it is possible that while we wait on a handle lock in above mentioned path The handle itself gets destroyed via below path remote_etm_svc_exit => qmi_handle_destroy and the handle is not valid anymore. This patch adds lock drvdata->mutex at number of possible cases. CRs-Fixed: 2045013 Change-Id: I4a5110630b78e551bab1b4f454d23aacd599c000 Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions