[PATCH 1/1] drm/amdgpu: only set dma_buf ops when it is valid

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

 



Commit message and signed-of-by line is missing.

Apart from that the patch is Reviewed-by: Christian König 
<christian.koenig at amd.com>.

Regards,
Christian.

Am 13.01.2018 um 00:01 schrieb Samuel Li:
> Change-Id: I37daecbf695da13eaeea1d362c270b92a894393a
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
> index a14234b..8afec21 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
> @@ -221,9 +221,10 @@ struct dma_buf *amdgpu_gem_prime_export(struct drm_device *dev,
>   		return ERR_PTR(-EPERM);
>   
>   	buf = drm_gem_prime_export(dev, gobj, flags);
> -	if (!IS_ERR(buf))
> +	if (!IS_ERR(buf)) {
>   		buf->file->f_mapping = dev->anon_inode->i_mapping;
> -	buf->ops = &amdgpu_dmabuf_ops;
> +		buf->ops = &amdgpu_dmabuf_ops;
> +	}
>   
>   	return buf;
>   }



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

  Powered by Linux