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

Commit b7d03db7 authored by Daniel Jarai's avatar Daniel Jarai Committed by android-build-merger
Browse files

Merge "Avoid closing invalid fds in GraphicBufferMapper" am: 8260e06c am: 8fe617ea

am: 9ef13167

Change-Id: I2193d68e72ed234c2dc603ea485f89c1ea4eee19
parents c9275a3b 9ef13167
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ status_t GraphicBufferMapper::unlock(buffer_handle_t handle)
{
    int32_t fenceFd = -1;
    status_t error = unlockAsync(handle, &fenceFd);
    if (error == NO_ERROR) {
    if (error == NO_ERROR && fenceFd >= 0) {
        sync_wait(fenceFd, -1);
        close(fenceFd);
    }