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

Commit 77635b13 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: driver unfinished write error code" am: c7e949b7 am:...

Merge "libbinder: driver unfinished write error code" am: c7e949b7 am: 3177db4b am: 9239ac80 am: fc6c7eff am: 40f868c3

Change-Id: I79fbeb42ddc2b8552470bdae18c7686b085977f6
parents 89a0e5d2 40f868c3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -997,7 +997,11 @@ status_t IPCThreadState::talkWithDriver(bool doReceive)
    if (err >= NO_ERROR) {
        if (bwr.write_consumed > 0) {
            if (bwr.write_consumed < mOut.dataSize())
                LOG_ALWAYS_FATAL("Driver did not consume write buffer");
                LOG_ALWAYS_FATAL("Driver did not consume write buffer. "
                                 "err: %s consumed: %zu of %zu",
                                 statusToString(err).c_str(),
                                 (size_t)bwr.write_consumed,
                                 mOut.dataSize());
            else {
                mOut.setDataSize(0);
                processPostWriteDerefs();