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

Commit 55d69a96 authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am 032be7a4: Merge "Log an error if property pool is exhausted"

* commit '032be7a4':
  Log an error if property pool is exhausted
parents 63577d92 032be7a4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -352,7 +352,11 @@ int property_set(const char *name, const char *value)
        __futex_wake(&pa->serial, INT32_MAX);
    } else {
        pa = __system_property_area__;
        if(pa->count == PA_COUNT_MAX) return -1;
        if(pa->count == PA_COUNT_MAX) {
            ERROR("Failed to set '%s'='%s',  property pool is exhausted at %d entries",
                    name, value, PA_COUNT_MAX);
            return -1;
        }

        pi = pa_info_array + pa->count;
        pi->serial = (valuelen << 24);