diff options
| author | Thierry Escande <thierry.escande@linaro.org> | 2019-03-07 10:12:23 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-28 02:09:57 +0900 |
| commit | b49f6d83e290f17e20f4e5cf31288d3bb4955ea6 (patch) | |
| tree | 048308c30dc6a7b47283bcf32febb4a8cd24183d /tools/perf/scripts/python/stackcollapse.py | |
| parent | 8e7389c79b40ed44c855193bfb46b496ac25676f (diff) | |
| download | cachepc-linux-b49f6d83e290f17e20f4e5cf31288d3bb4955ea6.tar.gz cachepc-linux-b49f6d83e290f17e20f4e5cf31288d3bb4955ea6.zip | |
misc: fastrpc: Fix a possible double free
This patch fixes the error exit path of fastrpc_init_create_process().
If the DMA allocation or the DSP invoke fails the fastrpc_map was freed
but not removed from the mapping list leading to a double free once the
mapping list is emptied in fastrpc_device_release().
[srinivas kandagatla]: Cleaned up error path labels and reset init mem
to NULL after free
Fixes: d73f71c7c6ee("misc: fastrpc: Add support for create remote init process")
Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
