[PATCH 2/2] drm/omap: fix flags in dma buf exporting

Rob Clark rob.clark at linaro.org
Thu Dec 20 06:30:03 PST 2012


On Thu, Dec 20, 2012 at 1:39 AM, Seung-Woo Kim <sw0312.kim at samsung.com> wrote:
> This patch fixes flags passed to dma buf exporting.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim at samsung.com>
> Cc: Rob Clark <rob.clark at linaro.org>

Probably should go to GregKH, unless he doesn't mind this going in via
drm tree (it won't conflict with any other recent patches).  Either
way,

Signed-off-by: Rob Clark <rob at ti.com>

> ---
> I found omap drm also sends wrong flag for dma buf exporting. So I send this
> based on drm-fixes branch.
>
>  drivers/staging/omapdrm/omap_gem_dmabuf.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/omapdrm/omap_gem_dmabuf.c b/drivers/staging/omapdrm/omap_gem_dmabuf.c
> index c6f3ef6..e5ffe72 100644
> --- a/drivers/staging/omapdrm/omap_gem_dmabuf.c
> +++ b/drivers/staging/omapdrm/omap_gem_dmabuf.c
> @@ -194,7 +194,7 @@ struct dma_buf_ops omap_dmabuf_ops = {
>  struct dma_buf * omap_gem_prime_export(struct drm_device *dev,
>                 struct drm_gem_object *obj, int flags)
>  {
> -       return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, 0600);
> +       return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, flags);
>  }
>
>  struct drm_gem_object * omap_gem_prime_import(struct drm_device *dev,
> --
> 1.7.4.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list