linux/drivers/gpu/drm/ttm
Zack Rusin 040b35c19b drm/ttm: Fix a regression causing kernel oops'es
The branch is explicitly taken if ttm == NULL which means that to avoid
a null pointer reference the ttm object can not be used inside. Switch
back to dst_mem to avoid kernel oops'es.

This fixes kernel oops'es with any buffer objects which don't have ttm_tt,
e.g. with vram based screen objects on vmwgfx.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Fixes: e3c92eb4a8 ("drm/ttm: rework on ttm_resource to use size_t type")
Cc: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230111175015.1134923-1-zack@kde.org
Signed-off-by: Christian König <christian.koenig@amd.com>
2023-01-12 13:28:51 +01:00
..
Makefile drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_agp_backend.c drm/ttm: Add a parameter to add extra pages into ttm_tt 2022-04-02 08:22:48 +05:30
ttm_bo.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
ttm_bo_util.c drm/ttm: Fix a regression causing kernel oops'es 2023-01-12 13:28:51 +01:00
ttm_bo_vm.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
ttm_device.c drm/ttm: fix missing NULL check in ttm_device_swapout 2022-06-10 13:20:21 +02:00
ttm_execbuf_util.c drm/ttm: fix logic inversion in ttm_eu_reserve_buffers 2022-04-11 16:00:57 +02:00
ttm_module.c LoongArch: Add writecombine support for drm 2022-06-03 20:09:27 +08:00
ttm_module.h drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_pool.c drm/ttm: optimize pool allocations a bit v2 2022-11-08 10:45:30 +01:00
ttm_range_manager.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
ttm_resource.c drm/ttm: rework on ttm_resource to use size_t type 2022-10-27 11:42:58 +02:00
ttm_sys_manager.c drm/ttm: add back a reference to the bdev to the res manager 2022-01-26 15:29:24 +01:00
ttm_tt.c drm/ttm: use kvcalloc() instead of kvmalloc_array() in ttm_tt v2 2022-04-21 14:47:30 +02:00