diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-06-19 01:14:20 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-19 01:34:54 (GMT) |
commit | ebc0bad4a05ad63979e8bc115cea3b8abdf814c7 (patch) | |
tree | 46b5fe233dbf40ea9037728bbfc75ae73876c5b4 /drivers/gpu/drm | |
parent | df63d3ecbca514bad99513b2401448d19a9bb92e (diff) | |
download | linux-fsl-qoriq-ebc0bad4a05ad63979e8bc115cea3b8abdf814c7.tar.xz |
drm/prime: Honor requested file flags when exporting a buffer
The DRM PRIME API passes file flags to the driver for the exported
buffer. Honor them instead of hardcoding 0600.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_prime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index dcde352..5b7b911 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c @@ -190,8 +190,7 @@ struct dma_buf *drm_gem_prime_export(struct drm_device *dev, if (ret) return ERR_PTR(ret); } - return dma_buf_export(obj, &drm_gem_prime_dmabuf_ops, obj->size, - 0600); + return dma_buf_export(obj, &drm_gem_prime_dmabuf_ops, obj->size, flags); } EXPORT_SYMBOL(drm_gem_prime_export); |