diff options
author | Dan Carpenter <[email protected]> | 2020-02-24 13:51:39 +0300 |
---|---|---|
committer | Jens Wiklander <[email protected]> | 2020-02-27 16:22:05 +0100 |
commit | b83685bceedbeed33a6adc2d0579a011708d2b18 (patch) | |
tree | 871826ba2548317cc4a271fd53d9ef955a5bdf48 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 11a48a5a18c63fd7621bb050228cebf13566e4d8 (diff) |
tee: amdtee: fix memory leak in amdtee_open_session()
On these error paths the "sess" variable isn't freed. It's a refcounted
pointer so we need to call kref_put(). I re-arranged the code a bit so
the error case is always handled before the success case and the error
paths are indented two tabs.
Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver")
Reviewed-by: Rijo Thomas <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions