diff options
author | Dave Airlie <airlied@redhat.com> | 2012-12-20 10:51:09 +1000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-12-20 11:17:31 +0100 |
commit | 5b42427fc38ecb9056c4e64deaff36d6d6ba1b67 (patch) | |
tree | 720957293f9aefc8e60de003937fc2d3be0a626d /drivers | |
parent | 0fde901f1ddd2ce0e380a6444f1fb7ca555859e9 (diff) | |
download | linux-5b42427fc38ecb9056c4e64deaff36d6d6ba1b67.tar.gz linux-5b42427fc38ecb9056c4e64deaff36d6d6ba1b67.tar.bz2 linux-5b42427fc38ecb9056c4e64deaff36d6d6ba1b67.zip |
drm/i915: fix flags in dma buf exporting
As pointed out by Seung-Woo Kim this should have been
passing flags like nouveau/radeon have.
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_dmabuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/i915_gem_dmabuf.c index 773ef77b6c22..7be4241e8242 100644 --- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c +++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c @@ -226,7 +226,7 @@ struct dma_buf *i915_gem_prime_export(struct drm_device *dev, { struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); - return dma_buf_export(obj, &i915_dmabuf_ops, obj->base.size, 0600); + return dma_buf_export(obj, &i915_dmabuf_ops, obj->base.size, flags); } static int i915_gem_object_get_pages_dmabuf(struct drm_i915_gem_object *obj) |