mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00: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