Merge "display: gralloc: zero out the alloc'd ion buffer" into ics

This commit is contained in:
Linux Build Service Account 2011-12-08 05:58:55 -08:00 committed by QuIC Gerrit Code Review
commit 3ace14e571

View File

@ -139,10 +139,9 @@ int IonAlloc::alloc_buffer(alloc_data& data)
close(ionSyncFd);
ionSyncFd = FD_INIT;
// Not doing memset for ION, uncomment if needed
// memset(base, 0, ionAllocData.len);
memset(base, 0, ionAllocData.len);
// Clean cache after memset
// clean_buffer(base, data.size, data.offset, fd_data.fd);
clean_buffer(base, data.size, data.offset, fd_data.fd);
data.base = base;
data.fd = fd_data.fd;
ioctl(mIonFd, ION_IOC_FREE, &handle_data);