diff options
author | 2016-03-23 14:43:42 +0000 | |
---|---|---|
committer | 2016-04-12 13:28:30 +0530 | |
commit | d1c2f87c9a8f79fa8816bbe7de98da38eae2be5e (patch) | |
tree | f9f90547b42c81aedfbab20531213dfde6e465e7 /tools/perf/scripts/python/stackcollapse.py | |
parent | mailbox: mailbox-test: Use more consistent format for calling copy_from_user() (diff) | |
download | linux-dev-d1c2f87c9a8f79fa8816bbe7de98da38eae2be5e.tar.xz linux-dev-d1c2f87c9a8f79fa8816bbe7de98da38eae2be5e.zip |
mailbox: mailbox-test: Prevent memory leak
If we set the Signal twice or more, without using it as part of a message,
memory will be re-allocated and the pointer over-written. Prevent this
potential leak by only allocating memory when there isn't any already.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions