[PATCH] drm/qxl: Replace ttm_bo_unref with ttm_bo_put

Gerd Hoffmann kraxel at redhat.com
Thu Aug 9 15:30:51 UTC 2018


> diff --git a/drivers/gpu/drm/qxl/qxl_gem.c b/drivers/gpu/drm/qxl/qxl_gem.c
> index f5c1e7872e92..89606c819d82 100644
> --- a/drivers/gpu/drm/qxl/qxl_gem.c
> +++ b/drivers/gpu/drm/qxl/qxl_gem.c
> @@ -40,7 +40,7 @@ void qxl_gem_object_free(struct drm_gem_object *gobj)
>  	qxl_surface_evict(qdev, qobj, false);
>  
>  	tbo = &qobj->tbo;
> -	ttm_bo_unref(&tbo);
> +	ttm_bo_put(tbo);

Same here (using drm-misc-next btw).

cheers,
  Gerd



More information about the dri-devel mailing list