From ac6e239175b46504f4c14819b7640d4adda6b9fd Mon Sep 17 00:00:00 2001 From: "andrew.boren" Date: Sun, 3 Jun 2012 11:22:25 -0700 Subject: [PATCH] ionalloc: Fix typo. *Not sure if this is a typo, or had used this flag previously, but needs to be O_SYNC now. Change-Id: I665aa2436009fcc735c1ffb9e0ab4bde79c5163d --- libgralloc/ionalloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgralloc/ionalloc.cpp b/libgralloc/ionalloc.cpp index a04a6b7..77eaa00 100644 --- a/libgralloc/ionalloc.cpp +++ b/libgralloc/ionalloc.cpp @@ -85,7 +85,7 @@ int IonAlloc::alloc_buffer(alloc_data& data) if(data.uncached) { // Use the sync FD to alloc and map // when we need uncached memory - ionSyncFd = open(ION_DEVICE, O_RDONLY|O_DSYNC); + ionSyncFd = open(ION_DEVICE, O_RDONLY|O_SYNC); if(ionSyncFd < 0) { LOGE("%s: Failed to open ion device - %s", __FUNCTION__, strerror(errno));