commit | 88dc475374d0f7454d7ce3b1e9f610c7e73fa4c2 | [log] [tgz] |
---|---|---|
author | Satyajit Desai <sadesai@codeaurora.org> | Thu Jun 01 18:41:33 2017 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Oct 08 02:11:49 2018 -0700 |
tree | 387cf7510000531b77f349431c7247b6db9ed37d | |
parent | 0186c4d01bdf8c6549ef4e652fa594378d4b08a8 [diff] |
coresight-tmc: Re-use ETR buffer across use cases We can run into use after free scenario for the buffer memory if enable and read operations happen simultaneously. Add mutex protection in order to prevent such a scenario. Change-Id: I3106564a46a9cffc0db8808ba03f78d76c925eca Signed-off-by: Satyajit Desai <sadesai@codeaurora.org> Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org> Signed-off-by: Mulu He <muluhe@codeaurora.org>