diff options
| author | Maarten Lankhorst <[email protected]> | 2023-07-25 17:12:39 +0200 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:39:17 -0500 |
| commit | 2a368a09ae1c3f7aebe6210927a1335186d3c6f7 (patch) | |
| tree | 73dea1d76b35788424bc5e3be69deb3fd65f9373 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | f82686ef74b96a51ba6c38f3ce119ba7f7995210 (diff) | |
drm/xe: Fix error paths of __xe_bo_create_locked
ttm_bo_init_reserved() calls the destroy() callback if it fails.
Because of this, __xe_bo_create_locked is required to be responsible
for freeing the bo even when it's passed in as argument.
Additionally, if the placement check fails, the bo was kept alive.
Fix it too.
Reported-by: Oded Gabbay <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Matthew Brost <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions