mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
drm/amdgpu: fix null pointer for bo unmap trace function
fix crash in trace. Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
323a9dbc45
commit
c430bc9770
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ TRACE_EVENT(amdgpu_vm_bo_unmap,
|
|||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->bo = bo_va->base.bo;
|
||||
__entry->bo = bo_va ? bo_va->base.bo : NULL;
|
||||
__entry->start = mapping->start;
|
||||
__entry->last = mapping->last;
|
||||
__entry->offset = mapping->offset;
|
||||
|
|
|
|||
Loading…
Reference in a new issue