Fix unitialized value in gralloc1
ReleaseFenceFD should never be initialized to 0 (stdout), it should
be initialized to -1 which is a special value meaning NO_FENCE.
Change-Id: Ie2e062ca838bbc01c2afd7e0f76f09c726ba05fe
diff --git a/libs/ui/GrallocMapper.cpp b/libs/ui/GrallocMapper.cpp
index b444871..7ee01ad 100644
--- a/libs/ui/GrallocMapper.cpp
+++ b/libs/ui/GrallocMapper.cpp
@@ -140,7 +140,7 @@
int Mapper::unlock(buffer_handle_t handle) const
{
- int releaseFence;
+ int releaseFence = -1;
Error error = kDefaultError;
mMapper->unlock(handle,