diff options
author | Lin Yi <[email protected]> | 2019-04-10 10:23:34 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-04-11 10:02:21 -0500 |
commit | 543c364d8eeeb42c0edfaac9764f4e9f3d777ec1 (patch) | |
tree | 383cf020fe70cecdfad507fd796c280ff5c4ea92 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 453393369dc9806d2455151e329c599684762428 (diff) |
drm/ttm: fix dma_fence refcount imbalance on error path
the ttm_bo_add_move_fence takes a reference to the struct dma_fence, but
failed to release it on the error path, leading to a memory leak.
add dma_fence_put before return when error occur.
Signed-off-by: Lin Yi <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions