[PATCH 2/7] drm/tegra: gem: Fill in missing export info
Dmitry Osipenko
digetx at gmail.com
Fri May 18 16:00:44 UTC 2018
On 17.05.2018 18:41, Thierry Reding wrote:
> From: Thierry Reding <treding at nvidia.com>
>
> Set the owner and name of the exported DMA-BUF in addition to the
> already filled-in fields.
>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
> drivers/gpu/drm/tegra/gem.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c
> index 8b0b4ff64bb4..387ba1dfbe0d 100644
> --- a/drivers/gpu/drm/tegra/gem.c
> +++ b/drivers/gpu/drm/tegra/gem.c
> @@ -663,6 +663,8 @@ struct dma_buf *tegra_gem_prime_export(struct drm_device *drm,
> {
> DEFINE_DMA_BUF_EXPORT_INFO(exp_info);
>
> + exp_info.exp_name = KBUILD_MODNAME;
> + exp_info.owner = drm->driver->fops->owner;
> exp_info.ops = &tegra_gem_prime_dmabuf_ops;
> exp_info.size = gem->size;
> exp_info.flags = flags;
>
Reviewed-by: Dmitry Osipenko <digetx at gmail.com>
Tested-by: Dmitry Osipenko <digetx at gmail.com>
More information about the dri-devel
mailing list