diff options
| author | 2024-10-25 01:18:43 +0000 | |
|---|---|---|
| committer | 2024-10-25 01:18:43 +0000 | |
| commit | b9e4ef88606db78e14a85be971483faa080309f0 (patch) | |
| tree | 1707552007f60bed3cfe02a9686571550edbd493 /libs/binder/IPCThreadState.cpp | |
| parent | 009229d905c65131c5277d88b88dc7c1184b8c5d (diff) | |
| parent | aff1772c7c2c350164fbef4ff77323503a572935 (diff) | |
Merge "binder: fix FD handling in continueWrite" into sc-v2-dev
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index c415ea02e2..0d653caf5d 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -1438,7 +1438,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*/) @@ -1448,7 +1448,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); |