diff mbox

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

Message ID 1355989178-29128-1-git-send-email-sw0312.kim@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Seung-Woo Kim Dec. 20, 2012, 7:39 a.m. UTC
This patch fixes flags passed to dma buf exporting.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Rob Clark <rob.clark@linaro.org>
---
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(-)

Comments

Rob Clark Dec. 20, 2012, 2:30 p.m. UTC | #1
On Thu, Dec 20, 2012 at 1:39 AM, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
> This patch fixes flags passed to dma buf exporting.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> Cc: Rob Clark <rob.clark@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@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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

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,