summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-10 16:31:36 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-10 16:34:13 +0100
commit8d19716865625be6f9bc16465c56c0a8458a651d (patch)
tree2f8b542233b6d1b7ba89059086d54e9d6dadefeb /src/lib
parent7cb444b6013ee2f1d067307c5f1976e817244eb0 (diff)
ecore_drm: pass NULL to mmap() instead 0 for address
The second find of these. The other one was in evas generic loaders. mmap() expects a void * as address here. If we want to let the kernel choose the address we should really pass in NULL instead of the integer 0. Thanks goes to the sparse semantic parser for pointing this out.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_drm/ecore_drm_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_fb.c b/src/lib/ecore_drm/ecore_drm_fb.c
index 385d3ea..00c062a 100644
--- a/src/lib/ecore_drm/ecore_drm_fb.c
+++ b/src/lib/ecore_drm/ecore_drm_fb.c
@@ -99,7 +99,7 @@ ecore_drm_fb_create(Ecore_Drm_Device *dev, int width, int height)
99 } 99 }
100 100
101 fb->mmap = 101 fb->mmap =
102 mmap(0, fb->size, PROT_WRITE, MAP_SHARED, dev->drm.fd, marg.offset); 102 mmap(NULL, fb->size, PROT_WRITE, MAP_SHARED, dev->drm.fd, marg.offset);
103 if (fb->mmap == MAP_FAILED) 103 if (fb->mmap == MAP_FAILED)
104 { 104 {
105 ERR("Could not mmap framebuffer space: %m"); 105 ERR("Could not mmap framebuffer space: %m");