summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/gralloc/gralloc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp
index 4eb9317..54aa64c 100644
--- a/modules/gralloc/gralloc.cpp
+++ b/modules/gralloc/gralloc.cpp
@@ -329,6 +329,7 @@ try_ashmem:
hnd->base = int(base)+offset;
hnd->lockState = lockState;
*pHandle = hnd;
+ memset((void*)hnd->base, 0, size);
}
LOGE_IF(err, "gralloc failed err=%s", strerror(-err));