diff options
| author | Karolina Stolarek <[email protected]> | 2023-10-16 12:15:25 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2023-10-16 12:27:27 +0000 |
| commit | 3b401e30c249849d803de6c332dad2a595a58658 (patch) | |
| tree | d5ee31c0e565b2656793624d52e6926226980e27 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/nouveau/disp: fix DP capable DSM connectors (diff) | |
| download | kernel-3b401e30c249849d803de6c332dad2a595a58658.tar.gz kernel-3b401e30c249849d803de6c332dad2a595a58658.zip | |
drm/ttm: Reorder sys manager cleanup step
With the current cleanup flow, we could trigger a NULL pointer
dereference if there is a delayed destruction of a BO with a
system resource that gets executed on drain_workqueue() call,
as we attempt to free a resource using an already released
resource manager.
Remove the device from the device list and drain its workqueue
before releasing the system domain manager in ttm_device_fini().
Signed-off-by: Karolina Stolarek <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
