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

Commit 71d3ef13 authored by Chris Forbes's avatar Chris Forbes Committed by android-build-merger
Browse files

Merge "ui: Fix bad size check in Fence::unflatten" into klp-dev

am: 25556811

Change-Id: I5a267f8dccb75625fafd96e67bc0fbb9a2492ce7
parents 7cb9cd3d 25556811
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ nsecs_t Fence::getSignalTime() const {
}

size_t Fence::getFlattenedSize() const {
    return 1;
    return 4;
}

size_t Fence::getFdCount() const {
@@ -152,7 +152,7 @@ status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, si
        return INVALID_OPERATION;
    }

    if (size < 1) {
    if (size < getFlattenedSize()) {
        return NO_MEMORY;
    }