diff options
| author | Lee Jones <lee.jones@linaro.org> | 2022-01-25 14:18:08 +0000 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-11-05 18:58:23 +0200 |
| commit | 1541758765fffaf166fa51ff66e915004af8d086 (patch) | |
| tree | e1139ece6f5ccf00294bc0d135b167d5ba5e6c43 /tools/perf/scripts/python/cs-trace-ranges.py | |
| parent | 03b4b3cd8d30cc3ba4fc0c001010ca3b57c36bd9 (diff) | |
ion: Do not 'put' ION handle until after its final use
pass_to_user() eventually calls kref_put() on an ION handle which is
still live, potentially allowing for it to be legitimately freed by
the client.
Prevent this from happening before its final use in both ION_IOC_ALLOC
and ION_IOC_IMPORT.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I2e54dbe91ec5f97f4da8dcc1fe0793a934da4537
Diffstat (limited to 'tools/perf/scripts/python/cs-trace-ranges.py')
0 files changed, 0 insertions, 0 deletions
