[PATCH] drm/amdgpu: fix trace error for amdgpu_vm_bo_unmap

Christian König deathsimple at vodafone.de
Mon Apr 24 08:50:13 UTC 2017


Am 24.04.2017 um 08:15 schrieb Junwei Zhang:
> Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> index f38e5e2..8676eff 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> @@ -249,7 +249,7 @@
>   			     ),
>   
>   	    TP_fast_assign(
> -			   __entry->bo = bo_va->bo;
> +			   __entry->bo = bo_va ? bo_va->bo : NULL;
>   			   __entry->start = mapping->it.start;
>   			   __entry->last = mapping->it.last;
>   			   __entry->offset = mapping->offset;




More information about the amd-gfx mailing list