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

Commit 2e0f5e4a authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12847866 from b30b63e1 to 25Q2-release

Change-Id: I131eb30b6f08e9d9d202ae29711fbe93347a2afc
parents 6ab33f0a b30b63e1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -445,6 +445,10 @@ status_t StreamHalAidl::transfer(void *buffer, size_t bytes, size_t *transferred
            AUGMENT_LOG(E, "failed to read %zu bytes to data MQ", toRead);
            return NOT_ENOUGH_DATA;
        }
    } else if (*transferred > bytes) {
        ALOGW("%s: HAL module wrote %zu bytes, which exceeds requested count %zu",
                __func__, *transferred, bytes);
        *transferred = bytes;
    }
    mStreamPowerLog.log(buffer, *transferred);
    return OK;