diff options
author | Miguel Vadillo <vadillo@ti.com> | 2012-02-01 19:25:52 -0600 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2012-04-25 14:58:53 -0700 |
commit | 565e03c393854495e814342eb3138e21a3de2604 (patch) | |
tree | 851bb7d575b1da977710cb41cfca0c76e04cde26 /sound | |
parent | 3afe8385d816c0ef9315befe8c98bf612c6a5b90 (diff) | |
download | kernel_samsung_tuna-565e03c393854495e814342eb3138e21a3de2604.zip kernel_samsung_tuna-565e03c393854495e814342eb3138e21a3de2604.tar.gz kernel_samsung_tuna-565e03c393854495e814342eb3138e21a3de2604.tar.bz2 |
remoteproc: add mutex protection for traces
In rproc_put() the buffers used to read remoteproc's traces were being unmapped
without any protection. If at the same time a cat on the traces is done, it
may access an unmapped buffer leading to a crash.
This patch protects the access and unmapping of dump/trace buffers with a
mutex. It also fixes some checkpatch issues in the trace functions.
Change-Id: I0a6f52e9df691bc1d4ff894febb9a20819b4b7c3
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions