summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Frederick Mayle <fmayle@google.com> 2024-10-24 22:17:07 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-10-24 22:17:07 +0000
commitb4e50ffb6798e503e13efb07bf51202cc86ed187 (patch)
tree83f29469833956db830d9b7082b4505dd747e2c0 /libs/binder/IPCThreadState.cpp
parentabfcdc866f01f8ff2d96980ccb463fabcc71b96d (diff)
parentc0ad6b029838b40236fba0adfc31c571e955e21a (diff)
Merge "binder: fix FD handling in continueWrite" into tm-dev
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r--libs/binder/IPCThreadState.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 3c97dcab93..a62425e984 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -1443,7 +1443,7 @@ status_t IPCThreadState::freeze(pid_t pid, bool enable, uint32_t timeout_ms) {
return ret;
}
-void IPCThreadState::freeBuffer(Parcel* parcel, const uint8_t* data,
+void IPCThreadState::freeBuffer(Parcel* /*parcel*/, const uint8_t* data,
size_t /*dataSize*/,
const binder_size_t* /*objects*/,
size_t /*objectsSize*/)
@@ -1453,7 +1453,6 @@ void IPCThreadState::freeBuffer(Parcel* parcel, const uint8_t* data,
alog << "Writing BC_FREE_BUFFER for " << data << endl;
}
ALOG_ASSERT(data != NULL, "Called with NULL data");
- if (parcel != nullptr) parcel->closeFileDescriptors();
IPCThreadState* state = self();
state->mOut.writeInt32(BC_FREE_BUFFER);
state->mOut.writePointer((uintptr_t)data);