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

Commit 9fdfa60a authored by Jesse Hall's avatar Jesse Hall Committed by Android Git Automerger
Browse files

am 424b093a: am ef923fcf: Merge "fix GraphicBuffer::flatten crash issue when handle is null"

* commit '424b093a':
  fix GraphicBuffer::flatten crash issue when handle is null
parents 57fdbbda 424b093a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -235,8 +235,10 @@ status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t&

    buffer = reinterpret_cast<void*>(static_cast<int*>(buffer) + sizeNeeded);
    size -= sizeNeeded;
    if (handle) {
        fds += handle->numFds;
        count -= handle->numFds;
    }

    return NO_ERROR;
}