aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSt├ęphane Marchesin2015-05-11 18:56:17 -0500
committerSt├ęphane Marchesin2015-05-11 18:59:26 -0500
commit3b1223f72c78639f4ea2dacc535364f477fbf5e4 (patch)
treed31eb86ab22fefb7d0e4c446930b1591e55b6117 /libdrm.h
parent0f45884ffc7a46dd4aef14ae6d227a10d8d24fd7 (diff)
downloadexternal-libdrm-3b1223f72c78639f4ea2dacc535364f477fbf5e4.tar.gz
external-libdrm-3b1223f72c78639f4ea2dacc535364f477fbf5e4.tar.xz
external-libdrm-3b1223f72c78639f4ea2dacc535364f477fbf5e4.zip
libdrm: use offset in bytes not pages in drm_mmap
mmap64 takes an offset in bytes, not in pages. This change modifies drm_mmap to use an offset in bytes. Change-Id: If4d7ab5ba27a588af2ac711903523b520c559c50
Diffstat (limited to 'libdrm.h')
-rw-r--r--libdrm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm.h b/libdrm.h
index 34a9e52c..f982c844 100644
--- a/libdrm.h
+++ b/libdrm.h
@@ -57,7 +57,7 @@ static inline void *drm_mmap(void *addr, size_t length, int prot, int flags,
57 return MAP_FAILED; 57 return MAP_FAILED;
58 } 58 }
59 59
60 return mmap64(addr, length, prot, flags, fd, (size_t) (offset >> 12)); 60 return mmap64(addr, length, prot, flags, fd, offset);
61} 61}
62 62
63# define drm_munmap(addr, length) \ 63# define drm_munmap(addr, length) \