gralloc: Clean kernel allocated pmem buffers after memset

Change-Id: I1a13c38c38a9f321e3f163545d0331529d2f7e6f
This commit is contained in:
Naseer Ahmed 2012-02-08 16:55:44 +05:30 committed by Andrew Sutherland
parent 6493734d01
commit a469182e24

View File

@ -319,7 +319,7 @@ int PmemKernelAlloc::alloc_buffer(alloc_data& data)
return err;
}
memset(base, 0, size);
//XXX: Flush here if cached
clean_buffer((void*)((intptr_t) base + offset), size, offset, fd);
data.base = base;
data.offset = 0;
data.fd = fd;