[PATCH] drm/ttm:fix missing inc bo_count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 14.08.2017 um 05:43 schrieb Monk Liu:
> From: Monk Liu <monk.liu at amd.com>
>
> Change-Id: I32ed928e59db5478e429189ac8b010e336e45a94
> Signe-off-by: Jack Xiao <jack.xiao at amd.com>

Nice catch, patch is Reviewed-by: Christian König <christian.koenig at amd.com>

Please ping me if those TTM patches need a whitelisting in our internal 
git server.

Christian.

> ---
>   drivers/gpu/drm/ttm/ttm_bo_util.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
> index d0459b3..c934ad5 100644
> --- a/drivers/gpu/drm/ttm/ttm_bo_util.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
> @@ -469,6 +469,7 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo,
>   	 * TODO: Explicit member copy would probably be better here.
>   	 */
>   
> +	atomic_inc(&bo->glob->bo_count);
>   	INIT_LIST_HEAD(&fbo->ddestroy);
>   	INIT_LIST_HEAD(&fbo->lru);
>   	INIT_LIST_HEAD(&fbo->swap);




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux