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
|
@ -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 New Issue