diff options
| author | Shashank Sharma <[email protected]> | 2024-03-21 14:21:00 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-03-22 19:51:55 +0000 |
| commit | f88a7dd06ab435f8c07dc9b84a003f321c08cd72 (patch) | |
| tree | ad755287cc6b7cd5b0ff66ef5123bac83ca2448b /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
| parent | drm/amdkfd: fix TLB flush after unmap for GFX9.4.2 (diff) | |
| download | kernel-f88a7dd06ab435f8c07dc9b84a003f321c08cd72.tar.gz kernel-f88a7dd06ab435f8c07dc9b84a003f321c08cd72.zip | |
drm/amdgpu: Add a NULL check for freeing root PT
This patch adds a NULL check to fix this crash reported during the
freeing of root PT entry:
BUG: unable to handle page fault for address: ffffc9002d637aa0
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
RIP: 0010:amdgpu_vm_pt_free+0x66/0xe0 [amdgpu]
PKRU: 55555554
Call Trace:
<TASK>
amdgpu_vm_pt_free_root+0x60/0xa0 [amdgpu]
amdgpu_vm_fini+0x2cb/0x5d0 [amdgpu]
? amdgpu_ctx_mgr_entity_fini+0x53/0x1c0 [amdgpu]
amdgpu_driver_postclose_kms+0x191/0x2d0 [amdgpu]
drm_file_free.part.0+0x1e5/0x260 [drm]
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Felix Kuehling <[email protected]>
Cc: Rajneesh Bhardwaj <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Shashank Sharma <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
0 files changed, 0 insertions, 0 deletions
