summaryrefslogtreecommitdiff
path: root/include/drm/gpu_scheduler.h
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2023-02-08 14:53:19 +0000
committerChristian König <christian.koenig@amd.com>2023-02-23 10:29:20 +0100
commit95d39a0c64aa529adbff1bdafd391e83ad587602 (patch)
tree7d2740d97162ed727e6c600568b1308a2ab008a4 /include/drm/gpu_scheduler.h
parentb129ff30acea495b1455cf8d6e1d86fdb87d22d4 (diff)
drm/radeon: handle NULL bo->resource in move callback
The ttm bo now initially has NULL bo->resource, and leaves the driver the handle that. However it looks like we forgot to handle that for radeon. It looks like this will just null-ptr-deref in radeon_bo_move(), if bo->resource is NULL. Fix this by calling move_null(). Fixes: 180253782038 ("drm/ttm: stop allocating dummy resources during BO creation") Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230208145319.397235-4-matthew.auld@intel.com Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include/drm/gpu_scheduler.h')
0 files changed, 0 insertions, 0 deletions