diff options
| author | Mukesh Ojha <mojha@codeaurora.org> | 2017-05-10 12:00:27 +0530 |
|---|---|---|
| committer | Mukesh Ojha <mojha@codeaurora.org> | 2017-05-16 23:50:45 +0530 |
| commit | 9021973bacc9a3614afae3764e7f0417d92a4d35 (patch) | |
| tree | 1d2aee3560da26e11224f2a12aacd9a59c1d171f /tools/perf/scripts/python | |
| parent | 9b3e8a81dcee1d1b92db6429f9abd83cc22c01f4 (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')
0 files changed, 0 insertions, 0 deletions
