summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWuZhen <wuzhen@jidemail.com>2016-01-06 17:34:56 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2016-01-06 21:14:16 +0800
commit556f7c16363330aabeb0b95b93719a0d66af4b7f (patch)
tree9263f4c164f69fd24cd8635b905f0219b4a47f1d
parent02584dae2127e368b97c5bc39e27810ac1644518 (diff)
downloadexternal_drm_gralloc-556f7c16363330aabeb0b95b93719a0d66af4b7f.zip
external_drm_gralloc-556f7c16363330aabeb0b95b93719a0d66af4b7f.tar.gz
external_drm_gralloc-556f7c16363330aabeb0b95b93719a0d66af4b7f.tar.bz2
add padding to gralloc_drm_handle_t
gralloc_drm_handle_t size differs for 32/64 bit process. thus on x86_64, this will crash any 32bit app, add propper padding. Change-Id: I03663b36dd841bf69c84973fd2f5e99741317c15
-rw-r--r--gralloc_drm_handle.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h
index f9cc626..f5b6aa0 100644
--- a/gralloc_drm_handle.h
+++ b/gralloc_drm_handle.h
@@ -49,7 +49,10 @@ struct gralloc_drm_handle_t {
int stride; /* the stride in bytes */
int data_owner; /* owner of data (for validation) */
- struct gralloc_drm_bo_t *data; /* pointer to struct gralloc_drm_bo_t */
+ union {
+ struct gralloc_drm_bo_t *data; /* pointer to struct gralloc_drm_bo_t */
+ int64_t __padding;
+ };
};
#define GRALLOC_DRM_HANDLE_MAGIC 0x12345678