projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df63d3e
)
drm/prime: Honor requested file flags when exporting a buffer
author
Laurent Pinchart
<
[email protected]
>
Wed, 19 Jun 2013 01:14:20 +0000
(
03:14
+0200)
committer
Dave Airlie
<
[email protected]
>
Wed, 19 Jun 2013 01:34:54 +0000
(11:34 +1000)
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 <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/drm_prime.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_prime.c
b/drivers/gpu/drm/drm_prime.c
index dcde35231e259c83460b9dfb8bb9b4a1514ca3a5..5b7b9110254b1669d046c85d2429a6d93cb2a36c 100644
(file)
--- 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);