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

Commit 25556811 authored by Chris Forbes's avatar Chris Forbes Committed by Android (Google) Code Review
Browse files

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

parents ac93b3a3 9809602a
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;
    }