don't memset ashmem region, especially before they're mmapped
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp
index d936cd3..404d8b8 100644
--- a/modules/gralloc/gralloc.cpp
+++ b/modules/gralloc/gralloc.cpp
@@ -300,6 +300,7 @@
                     fd = -1;
                 }
                 //LOGD_IF(!err, "allocating pmem size=%d, offset=%d", size, offset);
+                memset((char*)base + offset, 0, size);
             }
         } else {
             if ((usage & GRALLOC_USAGE_HW_2D) == 0) {
@@ -329,7 +330,6 @@
         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));