diff options
author | Zack Rusin <zackr@vmware.com> | 2023-01-11 20:50:15 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-01-12 15:28:51 +0300 |
commit | 040b35c19bf2bdbb8ba5f8742b4e199ace3cbdc3 (patch) | |
tree | 37adf179f1c97664b6eb1695ededba58e54254b7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4e2ec2500bfc5cf429ddcfe78b49cb76b36bc46d (diff) | |
download | linux-040b35c19bf2bdbb8ba5f8742b4e199ace3cbdc3.tar.xz |
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: e3c92eb4a84f ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions