diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2023-07-25 18:12:39 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:39:17 +0300 |
commit | 2a368a09ae1c3f7aebe6210927a1335186d3c6f7 (patch) | |
tree | 73dea1d76b35788424bc5e3be69deb3fd65f9373 /drivers/gpu/drm/xe/xe_execlist.c | |
parent | f82686ef74b96a51ba6c38f3ce119ba7f7995210 (diff) | |
download | linux-2a368a09ae1c3f7aebe6210927a1335186d3c6f7.tar.xz |
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 <ogabbay@kernel.org>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_execlist.c')
0 files changed, 0 insertions, 0 deletions