Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 521698f8 authored by Fabien Sanglard's avatar Fabien Sanglard
Browse files

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
parent 51185338
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ Error Mapper::lock(buffer_handle_t handle,

int Mapper::unlock(buffer_handle_t handle) const
{
    int releaseFence;
    int releaseFence = -1;

    Error error = kDefaultError;
    mMapper->unlock(handle,