diff options
| author | Matthew Auld <[email protected]> | 2023-02-08 14:53:17 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2023-02-23 10:29:14 +0100 |
| commit | b129ff30acea495b1455cf8d6e1d86fdb87d22d4 (patch) | |
| tree | e21f281f11d0cb6c3baa4bb0e04fb5174c276a7d /tools/perf/scripts/python | |
| parent | c604d31950d10db45267bbcb9ce8f1dbc2bfa74e (diff) | |
drm/qxl: 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 qxl.
It looks like this will just null-ptr-deref in qxl_bo_move(), if
bo->resource is NULL.
Fix this by calling move_null() if the new resource is TTM_PL_SYSTEM,
otherwise do the multi-hop sequence to ensure can safely call into
ttm_bo_move_memcpy(), since it might also need to clear the memory.
This should give the same behaviour as before.
Fixes: 180253782038 ("drm/ttm: stop allocating dummy resources during BO creation")
Signed-off-by: Matthew Auld <[email protected]>
Cc: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Acked-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions